2016-05-09 05:18:47 -04:00
|
|
|
class AddLockedToCiRunner < ActiveRecord::Migration
|
2016-06-06 06:48:18 -04:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2016-06-06 06:20:30 -04:00
|
|
|
def up
|
|
|
|
add_column_with_default(:ci_runners, :locked, :boolean,
|
|
|
|
default: false, allow_null: false)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:ci_runners, :locked)
|
2016-05-09 05:18:47 -04:00
|
|
|
end
|
|
|
|
end
|