diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-04 23:09:37 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-04 23:09:37 -0400 |
commit | eae1c764df31b5e5aa2a2d8315b2b5c0997babf4 (patch) | |
tree | 412387cc73d166c28fa4e0f5658bded6d4b7fbc8 /db | |
parent | 52bac73894ad0fe20d7aec907bbd7f07e83ca477 (diff) | |
download | pokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.tar.gz pokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.tar.bz2 pokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.zip |
Pokémon now show the Poké Ball that they're in
Also fixed a bug with viewing Pokémon that aren't in any game.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20171004203404_add_pokeball_to_pokemon.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20171004203404_add_pokeball_to_pokemon.rb b/db/migrate/20171004203404_add_pokeball_to_pokemon.rb new file mode 100644 index 0000000..9568d10 --- /dev/null +++ b/db/migrate/20171004203404_add_pokeball_to_pokemon.rb | |||
@@ -0,0 +1,9 @@ | |||
1 | class AddPokeballToPokemon < ActiveRecord::Migration[5.1] | ||
2 | def change | ||
3 | change_table :pokeviewer_pokemon do |t| | ||
4 | t.string :pokeball, null: false, default: :poke | ||
5 | end | ||
6 | |||
7 | change_column_default :pokeviewer_pokemon, :pokeball, nil | ||
8 | end | ||
9 | end | ||