Merge pull request #1134 from ovr/patch-1

Fix typos
This commit is contained in:
Jinzhu 2016-08-04 20:47:06 +08:00 committed by GitHub
commit 30ff208d6e

View File

@ -136,7 +136,7 @@ type Profile struct {
type User struct { type User struct {
gorm.Model gorm.Model
Profile []Profiles `gorm:"ForeignKey:UserRefer"` Profiles []Profile `gorm:"ForeignKey:UserRefer"`
} }
``` ```
@ -152,7 +152,7 @@ type Profile struct {
type User struct { type User struct {
gorm.Model gorm.Model
Refer string Refer string
Profile []Profiles `gorm:"ForeignKey:UserID;AssociationForeignKey:Refer"` Profiles []Profile `gorm:"ForeignKey:UserID;AssociationForeignKey:Refer"`
} }
``` ```