2017-05-02 07:50:52 +00:00
|
|
|
class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
2017-05-15 08:22:29 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2017-05-02 07:50:52 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2017-05-15 06:27:30 +00:00
|
|
|
update_column_in_batches(:projects, :auto_cancel_pending_pipelines, 1)
|
2017-05-02 07:50:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
# Nothing we can do!
|
|
|
|
end
|
|
|
|
end
|