2019-01-03 12:48:30 +05:30
|
|
|
class AddLockedToCiRunner < ActiveRecord::Migration
|
2016-06-22 15:30:34 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default(:ci_runners, :locked, :boolean,
|
|
|
|
default: false, allow_null: false)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:ci_runners, :locked)
|
|
|
|
end
|
|
|
|
end
|