Fix typo: `has_many :pets`, not `pets :has_many`.
Merge pull request #12629 from Peeja/has_many-pets-typo

Fix typo: `has_many :pets`, not `pets :has_many`.