diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-01 09:07:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-01 09:07:10 +0300 |
commit | e0ae0d63cd9361c82adab74a7b6fcbac956ecfaf (patch) | |
tree | a9183a0899fe40f519ecc63777b54a99a325028d /app/models | |
parent | 7503415f61a1405c4e83cc39e7fca8eaba621f23 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue_email_participant.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/issue_email_participant.rb b/app/models/issue_email_participant.rb index 76a96151350..dd963bc9e7e 100644 --- a/app/models/issue_email_participant.rb +++ b/app/models/issue_email_participant.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class IssueEmailParticipant < ApplicationRecord + include BulkInsertSafe + belongs_to :issue validates :email, uniqueness: { scope: [:issue_id], case_sensitive: false } |