Read about our upcoming Code of Conduct on this issue

20170825154015_resolve_outdated_diff_discussions.rb 441 Bytes
Newer Older
1
2
3
4
5
6
7
8
class CollapseOutdatedDiffComments < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  disable_ddl_transaction!

  def up
    add_column_with_default(:projects,
9
                            :resolve_outdated_diff_discussions,
10
11
12
13
14
                            :boolean,
                            default: false)
  end

  def down
15
    remove_column(:projects, :resolve_outdated_diff_discussions)
16
17
  end
end