20170816133938_add_access_level_to_ci_runners.rb 386 Bytes
Newer Older
1
class AddAccessLevelToCiRunners < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
9
    add_column_with_default(:ci_runners, :access_level, :integer,
10
                            default: Ci::Runner.access_levels['not_protected'])
11 12 13 14 15 16
  end

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