diff options
Diffstat (limited to 'app/models/container_registry/protection/rule.rb')
-rw-r--r-- | app/models/container_registry/protection/rule.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/container_registry/protection/rule.rb b/app/models/container_registry/protection/rule.rb index a91f3633d75..a7324b3b3b8 100644 --- a/app/models/container_registry/protection/rule.rb +++ b/app/models/container_registry/protection/rule.rb @@ -3,6 +3,10 @@ module ContainerRegistry module Protection class Rule < ApplicationRecord + include IgnorableColumns + + ignore_column :container_path_pattern, remove_with: '16.8', remove_after: '2023-12-22' + enum delete_protected_up_to_access_level: Gitlab::Access.sym_options_with_owner.slice(:maintainer, :owner, :developer), _prefix: :delete_protected_up_to @@ -12,7 +16,7 @@ module ContainerRegistry belongs_to :project, inverse_of: :container_registry_protection_rules - validates :container_path_pattern, presence: true, uniqueness: { scope: :project_id }, length: { maximum: 255 } + validates :repository_path_pattern, presence: true, uniqueness: { scope: :project_id }, length: { maximum: 255 } validates :delete_protected_up_to_access_level, presence: true validates :push_protected_up_to_access_level, presence: true end |