diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 12:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 12:08:30 +0300 |
commit | 152d3b652dd7daad10b3056f47e579acf601546d (patch) | |
tree | 876428f2fcdf9c694de891eba5e11f0cf7a1266f /app/models/namespace.rb | |
parent | 33a43bde0ea70044342e62637d85cdfa84931ef2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 3 |
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, |