summaryrefslogtreecommitdiff
path: root/db/post_migrate/20180420080616_schedule_stages_index_migration.rb
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-08-11 01:45:46 +0200
committerGabriel Mazetto <brodock@gmail.com>2018-08-11 04:15:59 +0200
commitf21e655b61725b972ae80d584a66d6deb53a337d (patch)
treef9fb191d364e30119eb7c02f65e4eef12936a232 /db/post_migrate/20180420080616_schedule_stages_index_migration.rb
parentf6d47d0dee0cbbb49f778de9d196c3dae0dbce7f (diff)
downloadgitlab-ce-f21e655b61725b972ae80d584a66d6deb53a337d.tar.gz
disable_statement_timeout doesn't require any argument anymore
it will decide the method for disable statement_timeout upon per transaction or per session, based on how it's called. When calling with a block, block will be executed and it will use session based statement_timeout, otherwise will default to existing behavior.
Diffstat (limited to 'db/post_migrate/20180420080616_schedule_stages_index_migration.rb')
-rw-r--r--db/post_migrate/20180420080616_schedule_stages_index_migration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20180420080616_schedule_stages_index_migration.rb b/db/post_migrate/20180420080616_schedule_stages_index_migration.rb
index c8bdf124810..eb82f098639 100644
--- a/db/post_migrate/20180420080616_schedule_stages_index_migration.rb
+++ b/db/post_migrate/20180420080616_schedule_stages_index_migration.rb
@@ -13,7 +13,7 @@ class ScheduleStagesIndexMigration < ActiveRecord::Migration
end
def up
- disable_statement_timeout(transaction: false) do
+ disable_statement_timeout do
Stage.all.tap do |relation|
queue_background_migration_jobs_by_range_at_intervals(relation,
MIGRATION,