Fix foreign key type for has-many associations, retrofits 71068a1
ws
Merge pull request #1665 from LJ1102/1.7.0

Fix foreign key type for has-many associations, retrofits 71068a1