2018-12-23 12:14:25 +05:30
|
|
|
class MakeAutoCancelPendingPipelinesOnByDefault < ActiveRecord::Migration[4.2]
|
2017-09-10 17:25:29 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
change_column_default(:projects, :auto_cancel_pending_pipelines, 1)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
change_column_default(:projects, :auto_cancel_pending_pipelines, 0)
|
|
|
|
end
|
|
|
|
end
|