Merge branch 'develop' into feat/conversation-finder-strategies

This commit is contained in:
Muhsin Keloth
2025-10-31 10:43:33 +05:30
committed by GitHub
+1 -1
View File
@@ -22,7 +22,7 @@ class AppliedSla < ApplicationRecord
belongs_to :sla_policy
belongs_to :conversation
has_many :sla_events, dependent: :destroy
has_many :sla_events, dependent: :destroy_async
validates :account_id, uniqueness: { scope: %i[sla_policy_id conversation_id] }
before_validation :ensure_account_id