Chatwoot/app/models/contact_inbox.rb
Sojan Jose c21c839dca
Contact model changes (#184)
* move source id from contacts

* Fix contactInbox model name

* rubocop fix

* Fix rspec
2019-10-27 13:14:36 +05:30

8 lines
203 B
Ruby

class ContactInbox < ApplicationRecord
validates :inbox_id, presence: true
validates :contact_id, presence: true
validates :source_id, presence: true
belongs_to :contact
belongs_to :inbox
end