20170305180853_add_auto_cancel_pending_pipelines_to_project.rb 417 Bytes
Newer Older
1
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class AddAutoCancelPendingPipelinesToProject < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:projects, :auto_cancel_pending_pipelines, :integer, default: 0)
  end

  def down
    remove_column(:projects, :auto_cancel_pending_pipelines)
  end
end