After upgrading to Gorm 2.0 I get a strange error that I cannot figure out. It worked fine under previous versions.
var foundUsers []models.User err = db.Mode