Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170305180853_add_auto_cancel_pending_pipelines_to_project.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f335e77fb5e5a216bf5103b5ad7ccc2fe470b20d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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