polymorphic belongs_to association with touch: true updates old record correctly

Example: Given you have a comments model with a polymorphic commentable
association (e.g. books and songs) with the touch option set.
Every time you update a comment its commentable should be touched.
This was working when you changed attributes on the comment or when you
moved the comment from one book to another. However, it was not working
when moving a comment from a book to a song. This is now fixed.
Merge pull request #12646 from severin/polymorphic_belongs_to_touch

polymorphic belongs_to association with touch: true updates old record correctly