These are chat archives for jinzhu/gorm

12th
Jan 2016
Edward Bramanti
@jadengore
Jan 12 2016 07:02
does db.Table(“user_languages”).Delete() work? I’m looking for a way to wipe my join tables
Jinzhu
@jinzhu
Jan 12 2016 09:04
@jadengore do it like this db.Table("users").Delete(nil)? or maybe db.Exec("delete from user_languages") better
Edward Bramanti
@jadengore
Jan 12 2016 09:04
Oh I ended up doing an exec
But I'll try the way you did delete
Thanks @jinzhu
Jinzhu
@jinzhu
Jan 12 2016 09:05
np