debian-mirror-gitlab/db/migrate/20160811172945_add_can_push_to_keys.rb

15 lines
311 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
class AddCanPushToKeys < ActiveRecord::Migration[4.2]
2017-08-17 22:00:37 +05:30
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