diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-28 21:07:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-28 21:07:22 +0300 |
commit | 891529770382ed0591209570567f17605524ef39 (patch) | |
tree | 7901135d427b9aaa4a5a334fff6bf7b4bb343e5d /app/models/chat_name.rb | |
parent | 20d52aa39ef79bc199e1459e385387baeb04d99f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/chat_name.rb')
-rw-r--r-- | app/models/chat_name.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/chat_name.rb b/app/models/chat_name.rb index 60370c525d5..5996e15df4e 100644 --- a/app/models/chat_name.rb +++ b/app/models/chat_name.rb @@ -11,8 +11,7 @@ class ChatName < ApplicationRecord validates :team_id, presence: true validates :chat_id, presence: true - validates :user_id, uniqueness: { scope: [:integration_id] } - validates :chat_id, uniqueness: { scope: [:integration_id, :team_id] } + validates :chat_id, uniqueness: { scope: :team_id } # Updates the "last_used_timestamp" but only if it wasn't already updated # recently. |