20160811172945_add_can_push_to_keys.rb 311 Bytes
Newer Older
1
class AddCanPushToKeys < ActiveRecord::Migration[4.2]
2
  include Gitlab::Database::MigrationHelpers
Lin Jen-Shin's avatar
Lin Jen-Shin committed
3
  disable_ddl_transaction!
4 5 6

  DOWNTIME = false

Lin Jen-Shin's avatar
Lin Jen-Shin committed
7
  def up
8 9
    add_column_with_default(:keys, :can_push, :boolean, default: false, allow_null: false)
  end
Lin Jen-Shin's avatar
Lin Jen-Shin committed
10 11 12 13

  def down
    remove_column(:keys, :can_push)
  end
14
end