The gem does not solve these issues, merely tells you about them (and even then it can't catch all of them, only the ones that Rails defines).
The mere presence of it on the dev workflow keeps your developers thinking about these types of issues as well, which goes a long way.