Feature/add inbox specs (#192)

* Add base Inbox association and validation specs

* `#facebook?``

* `#add_member` and `#remove_member`

* cleanup

* Rubocop

* Rubocop but again

really this time
This commit is contained in:
Lauren
2019-10-30 01:19:23 -04:00
committed by Sojan Jose
parent 3d3aefb197
commit bfa4121f41
2 changed files with 75 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ class Inbox < ApplicationRecord
validates :account_id, presence: true
belongs_to :account
# TODO: should add associations for the channel types
belongs_to :channel, polymorphic: true, dependent: :destroy
has_many :contact_inboxes, dependent: :destroy