Add index for deleted_at

This commit is contained in:
Jinzhu 2015-09-18 10:28:09 +08:00
parent 073fa4dc85
commit 19aacb8fbb
1 changed files with 1 additions and 1 deletions

View File

@ -6,5 +6,5 @@ type Model struct {
ID uint `gorm:"primary_key"` ID uint `gorm:"primary_key"`
CreatedAt time.Time CreatedAt time.Time
UpdatedAt time.Time UpdatedAt time.Time
DeletedAt *time.Time DeletedAt *time.Time `sql:"index"`
} }