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

20170816133938_add_access_level_to_ci_runners.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a1ea9514d151ceb37b87c9597f0b16cfca2d059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AddAccessLevelToCiRunners < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:ci_runners, :access_level, :integer,
                            default: Ci::Runner.access_levels['not_protected'])
  end

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