Skip to content

Commit

Permalink
db: remove index
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Jan 15, 2021
1 parent 38eca29 commit 98de07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// Model is a copy of the gorm model type but using slightly different configurations
type Model struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time `gorm:"index"` // this is changed to include the index
CreatedAt time.Time // `gorm:"index"` // this is changed to include the index
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}

0 comments on commit 98de07c

Please sign in to comment.