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

20160504112519_add_run_untagged_to_ci_runner.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c60892a6279cc3c0f40da7f912f052eb13b36664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rubocop:disable all
class AddRunUntaggedToCiRunner < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  def up
    add_column_with_default(:ci_runners, :run_untagged, :boolean,
                            default: true, allow_null: false)
  end

  def down
    remove_column(:ci_runners, :run_untagged)
  end
end