fix typo in models.md

This commit is contained in:
DinoLai 2017-11-15 23:48:50 +08:00
parent 263ef914f1
commit 7dbde463ea

View File

@ -42,7 +42,7 @@ type Address struct {
type Language struct {
ID int
Name string `gorm:"index:idx_name_code"` // Create index with name, and will create combined index if find other fields defined same name
Code string `gorm:"index:idx_name_code"` // `unique_index` also works
Code string `gorm:"unique_index:idx_name_code"` // `unique_index` also works
}
type CreditCard struct {