diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-19 14:45:50 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-19 14:45:50 +0200 |
commit | 3ad076b7e98e36328729817664a5547966f39324 (patch) | |
tree | 2fa42f4492075534e243603aa995f97f9f77c4c8 /db | |
parent | 9fe6c2b2c2dd92831c93297021b41d6721e4b201 (diff) | |
download | gitlab-ce-3ad076b7e98e36328729817664a5547966f39324.tar.gz |
Disable statement timeout in CI pipelines migrationfix/gb/improve-autocancel-pipelines-migraton
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb b/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb index 3c13a3d2518..765daa0a347 100644 --- a/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb +++ b/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb @@ -7,6 +7,8 @@ class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration DOWNTIME = false def up + disable_statement_timeout + update_column_in_batches(:projects, :auto_cancel_pending_pipelines, 1) end |