diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2018-08-11 01:45:46 +0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-08-11 04:15:59 +0200 |
commit | f21e655b61725b972ae80d584a66d6deb53a337d (patch) | |
tree | f9fb191d364e30119eb7c02f65e4eef12936a232 /db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb | |
parent | f6d47d0dee0cbbb49f778de9d196c3dae0dbce7f (diff) | |
download | gitlab-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/20180306164012_add_path_index_to_redirect_routes.rb')
-rw-r--r-- | db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb b/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb index 894ed2cf21e..ca9212fae27 100644 --- a/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb +++ b/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb @@ -20,7 +20,7 @@ class AddPathIndexToRedirectRoutes < ActiveRecord::Migration def up return unless Gitlab::Database.postgresql? - disable_statement_timeout(transaction: false) do + disable_statement_timeout do unless index_exists_by_name?(:redirect_routes, INDEX_NAME) execute("CREATE UNIQUE INDEX CONCURRENTLY #{INDEX_NAME} ON redirect_routes (lower(path) varchar_pattern_ops);") end |