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:
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index cd54ac1b24a..c665c2278a5 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -81,6 +81,7 @@ class Namespace < ApplicationRecord
has_one :cluster_enabled_grant, inverse_of: :namespace, class_name: 'Clusters::ClusterEnabledGrant'
has_many :work_items, inverse_of: :namespace
+ has_many :work_items_dates_source, inverse_of: :namespace, class_name: 'WorkItems::DatesSource'
has_many :issues, inverse_of: :namespace
has_many :timelog_categories, class_name: 'TimeTracking::TimelogCategory'
@@ -95,7 +96,7 @@ class Namespace < ApplicationRecord
length: { maximum: 255 }
validates :name, uniqueness: { scope: [:type, :parent_id] }, if: -> { parent_id.present? }
- validates :description, length: { maximum: 255 }
+ validates :description, length: { maximum: 500 }
validates :path,
presence: true,