Skip to content

Commit

Permalink
Use uniqueIndex instead of unique to fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Oct 28, 2020
1 parent a728baf commit 3a03dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdb.v2/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (

type studyModel struct {
ID int `gorm:"column:study_id;primaryKey"`
Name string `gorm:"column:study_name;type:varchar(512);unique;not null"`
Name string `gorm:"column:study_name;type:varchar(512);uniqueIndex;not null"`
Direction string `gorm:"column:direction;not null"`

// Associations
Expand Down

0 comments on commit 3a03dd7

Please sign in to comment.