diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-03 15:11:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-03 15:11:38 +0300 |
commit | 91035102b4e313787a45217ff12bb88f7f48bf20 (patch) | |
tree | 0b4c1147165bee39e199acae3d606683de97e087 /app/models/namespace.rb | |
parent | dda49284fcd29d631c2b7642a6430fdfa5793f48 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index e8ccb78692b..eb310845584 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -82,6 +82,8 @@ class Namespace < ApplicationRecord has_many :work_items, inverse_of: :namespace has_many :issues, inverse_of: :namespace + has_many :timelog_categories, class_name: 'TimeTracking::TimelogCategory' + validates :owner, presence: true, if: ->(n) { n.owner_required? } validates :name, presence: true, |