BigW Consortium Gitlab

20170305180853_add_auto_cancel_pending_pipelines_to_project.rb 417 Bytes
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
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