13 lines
325 B
Ruby
13 lines
325 B
Ruby
class AddLockedToCiRunner < ActiveRecord::Migration
|
|
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
|