delete user_scenarios table that is auto created for many2many associations between scenarios and users

This commit is contained in:
Sonja Happ 2019-09-03 16:36:37 +02:00
parent 8dcc1a8ec2
commit aa749c1c19

View file

@ -63,6 +63,7 @@ func DropTables(db *gorm.DB) {
db.DropTableIfExists(&User{}) db.DropTableIfExists(&User{})
db.DropTableIfExists(&Dashboard{}) db.DropTableIfExists(&Dashboard{})
db.DropTableIfExists(&Widget{}) db.DropTableIfExists(&Widget{})
db.DropTableIfExists("user_scenarios")
} }
// AutoMigrate the models // AutoMigrate the models