summaryrefslogtreecommitdiff
path: root/db/migrate/20141126120926_add_merge_request_rebase_enabled_to_projects.rb
blob: 3dafdf0fde40e5d397be1ab1f024c28dff4545da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# rubocop:disable all
class AddMergeRequestRebaseEnabledToProjects < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:projects, :merge_requests_rebase_enabled, :boolean, default: false)
  end

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