diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-04-16 14:56:48 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-04-30 19:12:59 +0300 |
commit | e51912543c24c2dcf25b2c8d775fc5f57f85e639 (patch) | |
tree | 353f3266f1424326f8cbfc417c9ec3b25fd28b7f /db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb | |
parent | a96e96d5c8829348fed969d00395be93290577d4 (diff) |
Add project level config for merge train
We add the option and expose the parameter for frontend work
Diffstat (limited to 'db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb')
-rw-r--r-- | db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb b/db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb new file mode 100644 index 00000000000..eb0e7c41f98 --- /dev/null +++ b/db/migrate/20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddMergeTrainEnabledToCiCdSettings < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :project_ci_cd_settings, :merge_trains_enabled, :boolean, default: false, allow_null: false + end + + def down + remove_column :project_ci_cd_settings, :merge_trains_enabled + end +end |