chore: remove unnecessary dependent destroy (#4104)
This commit is contained in:
parent
28d102f526
commit
11adfd2384
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,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
|
||||
belongs_to :account, dependent: :destroy_async, optional: true
|
||||
belongs_to :account, optional: true
|
||||
|
||||
def available_name
|
||||
name
|
||||
|
|
Loading…
Reference in a new issue