diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-16 18:10:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-16 18:10:18 +0300 |
commit | 6364c14cc1f445d471bca118dca5af5a85b2c5dc (patch) | |
tree | 2579c5592f207e86ff7a0c5c7499caad723cdec1 /app/models/sentry_issue.rb | |
parent | 5a2284f3500088e04cf3a5854fb06dc9db2b6077 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/sentry_issue.rb')
-rw-r--r-- | app/models/sentry_issue.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/sentry_issue.rb b/app/models/sentry_issue.rb index 30f4026e633..fec1a55f17d 100644 --- a/app/models/sentry_issue.rb +++ b/app/models/sentry_issue.rb @@ -1,9 +1,12 @@ # frozen_string_literal: true class SentryIssue < ApplicationRecord + include Importable + belongs_to :issue - validates :issue, uniqueness: true, presence: true + validates :issue, uniqueness: true + validates :issue, presence: true, unless: :importing? validates :sentry_issue_identifier, presence: true validate :ensure_sentry_issue_identifier_is_unique_per_project |