Fix typos

This commit is contained in:
☃ Dmitry (◕ᴥ◕) 2016-08-01 20:48:08 +09:00 committed by GitHub
parent ba70f12ea6
commit 96e1033335

View File

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