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>2022-07-13 12:08:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-13 12:08:30 +0300
commit152d3b652dd7daad10b3056f47e579acf601546d (patch)
tree876428f2fcdf9c694de891eba5e11f0cf7a1266f /app/models/namespace.rb
parent33a43bde0ea70044342e62637d85cdfa84931ef2 (diff)
Add latest changes from gitlab-org/gitlab@master
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 d6a24e7964e..8517ec2e6d0 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -74,7 +74,8 @@ class Namespace < ApplicationRecord
has_many :sync_events, class_name: 'Namespaces::SyncEvent'
has_one :cluster_enabled_grant, inverse_of: :namespace, class_name: 'Clusters::ClusterEnabledGrant'
- has_many :work_items, inverse_of: :namespace, class_name: 'WorkItem'
+ has_many :work_items, inverse_of: :namespace
+ has_many :issues, inverse_of: :namespace
validates :owner, presence: true, if: ->(n) { n.owner_required? }
validates :name,