diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
commit | 56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch) | |
tree | 4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /db/migrate/20171004203404_add_pokeball_to_pokemon.rb | |
parent | c1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff) | |
download | pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2 pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip |
Migrate to full rails app
Diffstat (limited to 'db/migrate/20171004203404_add_pokeball_to_pokemon.rb')
-rw-r--r-- | db/migrate/20171004203404_add_pokeball_to_pokemon.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20171004203404_add_pokeball_to_pokemon.rb b/db/migrate/20171004203404_add_pokeball_to_pokemon.rb index 9568d10..d66a4ca 100644 --- a/db/migrate/20171004203404_add_pokeball_to_pokemon.rb +++ b/db/migrate/20171004203404_add_pokeball_to_pokemon.rb | |||
@@ -1,9 +1,9 @@ | |||
1 | class AddPokeballToPokemon < ActiveRecord::Migration[5.1] | 1 | class AddPokeballToPokemon < ActiveRecord::Migration[5.1] |
2 | def change | 2 | def change |
3 | change_table :pokeviewer_pokemon do |t| | 3 | change_table :pokemon do |t| |
4 | t.string :pokeball, null: false, default: :poke | 4 | t.string :pokeball, null: false, default: :poke |
5 | end | 5 | end |
6 | 6 | ||
7 | change_column_default :pokeviewer_pokemon, :pokeball, nil | 7 | change_column_default :pokemon, :pokeball, nil |
8 | end | 8 | end |
9 | end | 9 | end |