diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-15 14:56:59 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-15 14:56:59 +0300 |
commit | d6ba5530b55a32137f14760e59b991ae900d2f53 (patch) | |
tree | 20487fcc095a75f306ab4bc06b7a3446a78b6954 /db/migrate | |
parent | 743cde02c37490396f9c5d2822406ce66190c751 (diff) | |
parent | 20ece0aac37ab38c6207bd3d0a4c6276275fb049 (diff) |
Merge branch 'enable-auto-cancelling-by-default' into 'master'
Make auto-cancelling pending pipelines on by default
Closes #30656
See merge request !11023
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb b/db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb new file mode 100644 index 00000000000..03bf626a08a --- /dev/null +++ b/db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb @@ -0,0 +1,13 @@ +class MakeAutoCancelPendingPipelinesOnByDefault < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + change_column_default(:projects, :auto_cancel_pending_pipelines, 1) + end + + def down + change_column_default(:projects, :auto_cancel_pending_pipelines, 0) + end +end |