Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-07 15:08:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-07 15:08:27 +0300
commita8653790086d284cecffdc35892bb422cd6c9a7b (patch)
tree8d1f4dc69026a42a47b1026eef2566c7461a52fe /app/models/issuable_severity.rb
parent444f662b8d8cbe47a8f3fa1db6ed926d64f3def3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issuable_severity.rb')
-rw-r--r--app/models/issuable_severity.rb2
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