Fixed a bug in  when using has_many association with :inverse_of option and UUID primary key.
Merge pull request #10500 from kennyj/fix_10450

Fixed a bug in  when using has_many association with :inverse_of option and UUID primary key.

Conflicts:
	activerecord/CHANGELOG.md