2019-04-16 11:56:48 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddMergeTrainEnabledToCiCdSettings < ActiveRecord::Migration[5.1]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2020-01-28 18:08:35 +00:00
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2019-04-16 11:56:48 +00:00
|
|
|
def up
|
2020-01-28 18:08:35 +00:00
|
|
|
add_column_with_default :project_ci_cd_settings, :merge_trains_enabled, :boolean, default: false, allow_null: false
|
2019-04-16 11:56:48 +00:00
|
|
|
end
|
2020-01-28 18:08:35 +00:00
|
|
|
# rubocop:enable Migration/UpdateLargeTable
|
2019-04-16 11:56:48 +00:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :project_ci_cd_settings, :merge_trains_enabled
|
|
|
|
end
|
|
|
|
end
|