From 9ed070d386f363796a070a2f962ba74e25cf0604 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 26 Dec 2015 14:00:18 +0800 Subject: [PATCH] Fix tests on CI --- migration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration_test.go b/migration_test.go index 74c8b94f..819a378a 100644 --- a/migration_test.go +++ b/migration_test.go @@ -15,7 +15,7 @@ func runMigration() { DB.Exec(fmt.Sprintf("drop table %v;", table)) } - values := []interface{}{&Product{}, &Email{}, &Address{}, &CreditCard{}, &Company{}, &Role{}, &Language{}, &HNPost{}, &EngadgetPost{}, &Animal{}, &User{}, &JoinTable{}} + values := []interface{}{&Product{}, &Email{}, &Address{}, &CreditCard{}, &Company{}, &Role{}, &Language{}, &HNPost{}, &EngadgetPost{}, &Animal{}, &User{}, &JoinTable{}, &Post{}, &Category{}, &Comment{}} for _, value := range values { DB.DropTable(value) }