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

20190416185130_add_merge_train_enabled_to_ci_cd_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eb0e7c41f984d331c87d9154179ec0a9cb3a13bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddMergeTrainEnabledToCiCdSettings < ActiveRecord::Migration[5.1]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default :project_ci_cd_settings, :merge_trains_enabled, :boolean, default: false, allow_null: false
  end

  def down
    remove_column :project_ci_cd_settings, :merge_trains_enabled
  end
end