20160914131004_only_allow_merge_if_all_discussions_are_resolved.rb 375 Bytes
Newer Older
1
class OnlyAllowMergeIfAllDiscussionsAreResolved < ActiveRecord::Migration[4.2]
2 3 4 5 6 7
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  disable_ddl_transaction!

  def up
8
    add_column :projects, :only_allow_merge_if_all_discussions_are_resolved, :boolean
9 10 11 12 13 14
  end

  def down
    remove_column(:projects, :only_allow_merge_if_all_discussions_are_resolved)
  end
end