diff --git a/migration_test.go b/migration_test.go index 91761154..28176f85 100644 --- a/migration_test.go +++ b/migration_test.go @@ -82,8 +82,8 @@ func (b BigEmail) TableName() string { } func TestAutoMigration(t *testing.T) { - DB.AutoMigrate(Address{}) - if err := DB.Table("emails").AutoMigrate(BigEmail{}).Error; err != nil { + DB.AutoMigrate(&Address{}) + if err := DB.Table("emails").AutoMigrate(&BigEmail{}).Error; err != nil { t.Errorf("Auto Migrate should not raise any error") }