2017-05-02 07:50:52 +00:00
|
|
|
class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
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
|