20170305180853_add_auto_cancel_pending_pipelines_to_project.rb 406 Bytes
Newer Older
1
# rubocop:disable Migration/UpdateLargeTable
2
class AddAutoCancelPendingPipelinesToProject < ActiveRecord::Migration[4.2]
3 4 5 6 7 8 9 10 11 12 13 14 15 16
  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