2016-08-14 13:49:08 -04:00
|
|
|
class AddCanPushToKeys < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
2016-11-10 10:28:15 -05:00
|
|
|
disable_ddl_transaction!
|
2016-08-14 13:49:08 -04:00
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-11-10 10:28:15 -05:00
|
|
|
def up
|
2016-08-14 13:49:08 -04:00
|
|
|
add_column_with_default(:keys, :can_push, :boolean, default: false, allow_null: false)
|
|
|
|
end
|
2016-11-10 10:28:15 -05:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:keys, :can_push)
|
|
|
|
end
|
2016-08-14 13:49:08 -04:00
|
|
|
end
|