Move to post_migrate and use update_column_in_batches
This commit is contained in:
parent
dbd034b7a2
commit
b5bffbd4ad
1 changed files with 1 additions and 2 deletions
|
@ -4,8 +4,7 @@ class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration
|
||||||
DOWNTIME = false
|
DOWNTIME = false
|
||||||
|
|
||||||
def up
|
def up
|
||||||
connection.execute(
|
update_column_in_batches(:projects, :auto_cancel_pending_pipelines, 1)
|
||||||
'UPDATE projects SET auto_cancel_pending_pipelines = 1')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
Loading…
Reference in a new issue