18 lines
443 B
Ruby
18 lines
443 B
Ruby
# rubocop:disable all
|
|
class AddFastForwardOptionToProject < ActiveRecord::Migration
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
DOWNTIME = false
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def add
|
|
add_column_with_default(:projects, :merge_requests_ff_only_enabled, :boolean, default: false)
|
|
end
|
|
|
|
def down
|
|
remove_column(:projects, :merge_requests_ff_only_enabled)
|
|
end
|
|
end
|