From a7e63541fd1e2dbb673c19ed8afe63a00f575845 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Tue, 25 Nov 2014 14:41:09 +0800 Subject: [PATCH] Fix migration tests --- migration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") }