From afc688f79144701a6f0c215c2f96fbd850f7aefc Mon Sep 17 00:00:00 2001 From: Gerardo <gerardo@b310.de> Date: Fri, 19 Jan 2024 13:10:40 +0100 Subject: [PATCH] refactor: Drop col 'package_name_pattern_ilike_query' Part 3 This MR includes: - Dropping the column 'package_name_pattern_ilike_query' because it this column is not needed anymore - Changes for the 2nd part for dropping a column based on the GitLab guide, see https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#dropping-columns - Changes relevant for protected packages Changelog: removed --- app/models/packages/protection/rule.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/packages/protection/rule.rb b/app/models/packages/protection/rule.rb index 6a06d1a21459a..be45083b3cc0f 100644 --- a/app/models/packages/protection/rule.rb +++ b/app/models/packages/protection/rule.rb @@ -3,9 +3,6 @@ module Packages module Protection class Rule < ApplicationRecord - include IgnorableColumns - ignore_column :package_name_pattern_ilike_query, remove_with: '16.11', remove_after: '2024-03-22' - enum package_type: Packages::Package.package_types.slice(:npm) enum push_protected_up_to_access_level: Gitlab::Access.sym_options_with_owner.slice(:developer, :maintainer, :owner), -- GitLab