diff options
Diffstat (limited to 'db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb')
-rw-r--r-- | db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb b/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb new file mode 100644 index 00000000000..a527bf4b2ef --- /dev/null +++ b/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AddDefaultForApprovalProjectRulesScanners < Gitlab::Database::Migration[2.0] + def up + change_column_default :approval_project_rules, :scanners, from: nil, to: [] + end + + def down + change_column_default :approval_project_rules, :scanners, from: [], to: nil + end +end |