Skip to content

Commit 1b54b75

Browse files
committed
fix: カラム名を明示的に指定
1 parent 07cee39 commit 1b54b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repository/comment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type comment struct {
1111
GormModel // ID, CreatedAt, UpdatedAt
1212
ItemID int `gorm:"not null"`
1313
UserID string `gorm:"type:varchar(32);not null"`
14-
Text string `gorm:"type:text;not null"`
14+
Text string `gorm:"column:comment;type:text;not null"`
1515
DeletedAt *time.Time
1616
}
1717

0 commit comments

Comments
 (0)