Skip to content

Commit

Permalink
soft delete for coins
Browse files Browse the repository at this point in the history
  • Loading branch information
daniildulin committed Apr 1, 2019
1 parent 8169a35 commit bce8c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type Coin struct {
Name string `json:"name" sql:"type:varchar(255)"`
Symbol string `json:"symbol" sql:"type:varchar(20)"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
DeletedAt *time.Time `json:"deleted_at" pg:",soft_delete"`
}

0 comments on commit bce8c1a

Please sign in to comment.