Merge e0a7c13ef5fbd76e53710fc27eeef90c89611016 into 96db2a1d1568b54d97afb759b6bb2a96f11a704a

This commit is contained in:
Guan Ce 2014-07-13 11:08:34 +00:00
commit 8e6c26db47

View File

@ -141,6 +141,7 @@ import (
var DB gorm.DB
func init() {
var err error
//Pls note that it's "=" rather than ":="
DB, err = gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable")
// Connection string parameters for Postgres - http://godoc.org/github.com/lib/pq, if you are using another