14 lines
311 B
Ruby
14 lines
311 B
Ruby
class AddCanPushToKeys < ActiveRecord::Migration[4.2]
|
|
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
|