diff options
Diffstat (limited to 'db/migrate/20231102230947_create_pokemons.rb')
-rw-r--r-- | db/migrate/20231102230947_create_pokemons.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20231102230947_create_pokemons.rb b/db/migrate/20231102230947_create_pokemons.rb new file mode 100644 index 0000000..764aceb --- /dev/null +++ b/db/migrate/20231102230947_create_pokemons.rb @@ -0,0 +1,10 @@ +class CreatePokemons < ActiveRecord::Migration[7.1] + def change + create_table :pokemons do |t| + t.integer :pokedex_num, null: false + t.string :name, null: false + + t.timestamps + end + end +end |