diff options
Diffstat (limited to 'db/migrate/20201008144854_set_regex_defaults_on_container_expiration_policies.rb')
-rw-r--r-- | db/migrate/20201008144854_set_regex_defaults_on_container_expiration_policies.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20201008144854_set_regex_defaults_on_container_expiration_policies.rb b/db/migrate/20201008144854_set_regex_defaults_on_container_expiration_policies.rb deleted file mode 100644 index 45c411fc238..00000000000 --- a/db/migrate/20201008144854_set_regex_defaults_on_container_expiration_policies.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class SetRegexDefaultsOnContainerExpirationPolicies < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - def up - with_lock_retries do - change_column_default :container_expiration_policies, :name_regex, '.*' - change_column_default :container_expiration_policies, :enabled, false - end - end - - def down - with_lock_retries do - change_column_default :container_expiration_policies, :name_regex, nil - change_column_default :container_expiration_policies, :enabled, true - end - end -end |