Fix tests on CI

This commit is contained in:
Jinzhu 2015-12-26 14:00:18 +08:00
parent c23185af54
commit 9ed070d386
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}