hatkirby / pokeviewer

Rails engine that displays Pokémon
MIT License
0 stars 0 forks source link

Evolved Pokémon do not change species #3

Closed hatkirby closed 6 years ago

hatkirby commented 6 years ago

When a Pokémon gets uploaded to the website, then is evolved in-game and uploaded again, the website will not acknowledge that the Pokémon's species changed even though everything else will be correctly updated. This is because a Pokémon's species is stored in the Pokémon model, rather than in the revision model. Because a Pokémon's species can change (due to evolution), this field should be moved into the revision model.