Rails should append ancestors when generating i18n error messages

Wanted to get some feedback before submitting a PR.

I’d like to improve ActiveRecord error message translations so that they work better with STI.

Here’s my original issue: https://github.com/rails/rails/issues/26946#event-842718747

Thanks!

-Nick