fix: Delete agent bots without deleting the messages (#7754)
This commit is contained in:
@@ -23,7 +23,7 @@ class AgentBot < ApplicationRecord
|
||||
|
||||
has_many :agent_bot_inboxes, dependent: :destroy_async
|
||||
has_many :inboxes, through: :agent_bot_inboxes
|
||||
has_many :messages, as: :sender, dependent: :restrict_with_exception
|
||||
has_many :messages, as: :sender, dependent: :nullify
|
||||
belongs_to :account, optional: true
|
||||
enum bot_type: { webhook: 0, csml: 1 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user