Upgrade to rails 6 💎 (#11)

- upgraded to rails 6
- fixes various issues
This commit is contained in:
Sojan Jose
2019-08-19 01:19:57 -07:00
committed by Pranav Raj S
parent 3c32103e34
commit 52194116b3
53 changed files with 819 additions and 605 deletions

View File

@@ -10,8 +10,8 @@ class Inbox < ApplicationRecord
has_many :conversations, dependent: :destroy
has_many :messages, through: :conversations
has_many :contacts, dependent: :destroy
after_commit :subscribe_webhook, on: [:create], if: :facebook?
after_commit :delete_round_robin_agents, on: [:destroy]
after_create :subscribe_webhook, if: :facebook?
after_destroy :delete_round_robin_agents
def add_member(user_id)
member = inbox_members.new(user_id: user_id)