BigW Consortium Gitlab

20160519203051_add_developers_can_merge_to_protected_branches.rb 381 Bytes
Newer Older
1 2 3
class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

4 5
  DOWNTIME = false

6 7
  disable_ddl_transaction!

8
  def up
9 10
    add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false
  end
11 12 13 14

  def down
    remove_column :protected_branches, :developers_can_merge
  end
15
end