Chore: Replaced dependent destroy with dependent destroy_async in all models (#3249)
This commit is contained in:
@@ -12,6 +12,6 @@
|
||||
|
||||
class TelegramBot < ApplicationRecord
|
||||
belongs_to :account
|
||||
has_one :inbox, as: :channel, dependent: :destroy
|
||||
has_one :inbox, as: :channel, dependent: :destroy_async
|
||||
validates_uniqueness_of :auth_key, scope: :account_id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user