diff options
Diffstat (limited to 'app/models/chat_name.rb')
-rw-r--r-- | app/models/chat_name.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chat_name.rb b/app/models/chat_name.rb index 0041595baba..ff3f2663b73 100644 --- a/app/models/chat_name.rb +++ b/app/models/chat_name.rb @@ -3,11 +3,11 @@ class ChatName < ApplicationRecord LAST_USED_AT_INTERVAL = 1.hour - belongs_to :service + belongs_to :integration, foreign_key: :service_id belongs_to :user validates :user, presence: true - validates :service, presence: true + validates :integration, presence: true validates :team_id, presence: true validates :chat_id, presence: true |