Merge pull request #17970 from ulissesalmeida/foreign-type-has-many-has-one

Add foreign_type option for polymorphic has_one and has_many.
Conflicts:
	activerecord/CHANGELOG.md