diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-07 15:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-07 15:08:27 +0300 |
commit | a8653790086d284cecffdc35892bb422cd6c9a7b (patch) | |
tree | 8d1f4dc69026a42a47b1026eef2566c7461a52fe /app/models/issuable_severity.rb | |
parent | 444f662b8d8cbe47a8f3fa1db6ed926d64f3def3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issuable_severity.rb')
-rw-r--r-- | app/models/issuable_severity.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/issuable_severity.rb b/app/models/issuable_severity.rb index cd3e967946b..d68b3dc48ee 100644 --- a/app/models/issuable_severity.rb +++ b/app/models/issuable_severity.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class IssuableSeverity < ApplicationRecord + DEFAULT = 'unknown' + belongs_to :issue validates :issue, presence: true, uniqueness: true |