summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 09:09:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 09:09:01 +0000
commite40061efd4c68576da944254567d0b3fbc233ae4 (patch)
treeb39bc9c07069ab9ff022d09157834c3e8514b1d6 /app/models/label.rb
parentbd06d7cd6cf903ef0c73670417f4fb15143b70fa (diff)
downloadgitlab-ce-e40061efd4c68576da944254567d0b3fbc233ae4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index 483d51099b1..aa53c0e0f3f 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -14,8 +14,7 @@ class Label < ApplicationRecord
DEFAULT_COLOR = ::Gitlab::Color.of('#6699cc')
- attribute :color, ::Gitlab::Database::Type::Color.new
- default_value_for :color, DEFAULT_COLOR
+ attribute :color, ::Gitlab::Database::Type::Color.new, default: DEFAULT_COLOR
has_many :lists, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
has_many :priorities, class_name: 'LabelPriority'