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

20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 03bf626a08a4b3c07e22470e9fcec76b4ceb33d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class MakeAutoCancelPendingPipelinesOnByDefault < ActiveRecord::Migration
  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