diff options
Diffstat (limited to 'app/models/protected_tag.rb')
-rw-r--r-- | app/models/protected_tag.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/protected_tag.rb b/app/models/protected_tag.rb index 5b2467daddc..e89cb3aabc7 100644 --- a/app/models/protected_tag.rb +++ b/app/models/protected_tag.rb @@ -4,6 +4,7 @@ class ProtectedTag < ApplicationRecord include ProtectedRef validates :name, uniqueness: { scope: :project_id } + validates :project, presence: true protected_ref_access_levels :create |