about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-04 23:09:37 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-04 23:09:37 -0400
commiteae1c764df31b5e5aa2a2d8315b2b5c0997babf4 (patch)
tree412387cc73d166c28fa4e0f5658bded6d4b7fbc8 /db
parent52bac73894ad0fe20d7aec907bbd7f07e83ca477 (diff)
downloadpokeviewer-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.rb9
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 @@
1class 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
9end