diff options
Diffstat (limited to 'db/migrate')
-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 | ||