diff --git a/tests/hooks_test.go b/tests/hooks_test.go index aec271a01..0d4ca7784 100644 --- a/tests/hooks_test.go +++ b/tests/hooks_test.go @@ -616,6 +616,10 @@ type UserUpdate struct { Name string `gorm:"column:name"` } +func (UserUpdate) TableName() string { + return "user_updates" +} + func (up *UserUpdate) BeforeUpdate(tx *gorm.DB) error { up.Version++ return nil