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

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