debian-mirror-gitlab/db/migrate/20160509091049_add_locked_to_ci_runner.rb
2019-02-15 15:39:39 +05:30

13 lines
330 B
Ruby

class AddLockedToCiRunner < ActiveRecord::Migration[4.2]
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