mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: remove unnecessary dependent destroy (#4104)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user