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
DOWNTIME = false
def up
connection.execute(
'UPDATE projects SET auto_cancel_pending_pipelines = 1')
update_column_in_batches(:projects, :auto_cancel_pending_pipelines, 1)
end
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