diff options
Diffstat (limited to 'db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb')
-rw-r--r-- | db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb b/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb new file mode 100644 index 00000000000..d7228b0a3f1 --- /dev/null +++ b/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class ChangePushProtectedUpToAccessLevelToSmallintInPackagesProtectionRules < Gitlab::Database::Migration[2.1] + enable_lock_retries! + + def up + change_column :packages_protection_rules, :push_protected_up_to_access_level, :integer, limit: 2 + end + + def down + change_column :packages_protection_rules, :push_protected_up_to_access_level, :integer + end +end |