Commit b5bffbd4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Move to post_migrate and use update_column_in_batches

parent dbd034b7
...@@ -4,8 +4,7 @@ class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment