Disable timeout while removing services

On GitLab.com this migration could take about 3 minutes. Disabling the
statement we know we have enough time to complete this.

Fixes #25976
This commit is contained in:
Z.J. van de Weg 2016-12-27 11:10:13 +01:00
parent 796b5b575f
commit 269bc74506
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ class RemoveUnneededServices < ActiveRecord::Migration
DOWNTIME = false
def up
disable_statement_timeout
execute("DELETE FROM services WHERE active = false AND properties = '{}';")
end