diff options
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 3f6c601..7a6408c 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -26,5 +26,5 @@ end csv_file = Rails.root.join("db/data/pokemon.csv") CSV.foreach(csv_file, headers: true) do |row| - Pokemon.create(pokedex_num: row["pokedex_num"].to_i, name: row["name"]) + Pokemon.create(pokedex_num: row["pokedex_num"], name: row["name"]) end |