Change sender_id to contact_id in conversations (#167)
* change sender_id to contact_id in conversations * Fix failing tests * Fix seeds * fix specs * Fix issues in facebook messenger
This commit is contained in:
@@ -6,7 +6,7 @@ class Contact < ApplicationRecord
|
||||
|
||||
belongs_to :account
|
||||
belongs_to :inbox
|
||||
has_many :conversations, dependent: :destroy, foreign_key: :sender_id
|
||||
has_many :conversations, dependent: :destroy
|
||||
mount_uploader :avatar, AvatarUploader
|
||||
|
||||
def push_event_data
|
||||
|
||||
Reference in New Issue
Block a user