gitlab-org--gitlab-foss/db/migrate/20160811172945_add_can_push_to_keys.rb
2016-11-10 23:28:15 +08:00

14 lines
306 B
Ruby

class AddCanPushToKeys < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
DOWNTIME = false
def up
add_column_with_default(:keys, :can_push, :boolean, default: false, allow_null: false)
end
def down
remove_column(:keys, :can_push)
end
end