提交 b5bffbd4 编写于 作者: L Lin Jen-Shin

Move to post_migrate and use update_column_in_batches

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册