diff options
Diffstat (limited to 'db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb')
-rw-r--r-- | db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb b/db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb new file mode 100644 index 00000000000..4bf8437d4fb --- /dev/null +++ b/db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class ChangeProjectIdNullInProtectedBranches < Gitlab::Database::Migration[2.0] + enable_lock_retries! + + def up + change_column_null :protected_branches, :project_id, true + end + + def down + change_column_null :protected_branches, :project_id, false + end +end |