gitlab-org--gitlab-foss/db/migrate/20160509091049_add_locked_to_ci_runner.rb

14 lines
325 B
Ruby
Raw Normal View History

class AddLockedToCiRunner < ActiveRecord::Migration
2016-06-06 06:48:18 -04:00
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