From 739ac3d677ccee5715c194443a62a1482b11c74a Mon Sep 17 00:00:00 2001 From: Takahiro Ikeuchi Date: Thu, 31 Mar 2016 21:29:26 +0900 Subject: [PATCH] Update models.md --- documents/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/models.md b/documents/models.md index 61706824..259ed599 100644 --- a/documents/models.md +++ b/documents/models.md @@ -21,7 +21,7 @@ type User struct { ShippingAddress Address // One-To-One relationship (belongs to - use ShippingAddressID as foreign key) ShippingAddressID int - IgnoreMe int `gorm:"-"` // Ignore this field + IgnoreMe int `sql:"-"` // Ignore this field Languages []Language `gorm:"many2many:user_languages;"` // Many-To-Many relationship, 'user_languages' is join table }