2017-08-16 14:13:43 +00:00
|
|
|
class AddAccessLevelToCiRunners < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2017-08-21 08:24:44 +00:00
|
|
|
add_column_with_default(:ci_runners, :access_level, :integer,
|
2017-08-29 06:56:03 +00:00
|
|
|
default: Ci::Runner.access_levels['not_protected'])
|
2017-08-16 14:13:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:ci_runners, :access_level)
|
|
|
|
end
|
|
|
|
end
|