summaryrefslogtreecommitdiff
path: root/db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb')
-rw-r--r--db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb b/db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb
new file mode 100644
index 0000000..0771aba
--- /dev/null
+++ b/db/migrate/20231103002142_change_pokemon_pokedex_num_to_string.rb
@@ -0,0 +1,9 @@
+class ChangePokemonPokedexNumToString < ActiveRecord::Migration[7.1]
+ def up
+ change_column :pokemons, :pokedex_num, :string
+ end
+
+ def down
+ change_column :pokemons, :pokedex_num, :integer
+ end
+end