summaryrefslogtreecommitdiff
path: root/db/migrate/20220613112032_change_project_id_null_in_protected_branches.rb
blob: 4bf8437d4fb3bb95403f78491738f0b1706c066d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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