about summary refs log tree commit diff stats
path: root/db/migrate/20171004203404_add_pokeball_to_pokemon.rb
blob: 9568d1063084fda5d13387edc73124379ee0e37b (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddPokeballToPokemon < ActiveRecord::Migration[5.1]
  def change
    change_table :pokeviewer_pokemon do |t|
      t.string :pokeball, null: false, default: :poke
    end

    change_column_default :pokeviewer_pokemon, :pokeball, nil
  end
end