diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-02 10:50:52 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-15 09:47:24 +0300 |
commit | 45f66c8021704276cb5ddf8831606ced71e955e9 (patch) | |
tree | d6da313f62fba6231b555d1c8c8aad74bbd0070b /db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb | |
parent | 133d2bb40a6c8516a8c8c487f347fa99bd7e907c (diff) |
Make auto-cancelling pending pipelines on by default
Diffstat (limited to 'db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb')
-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 |