remove sslmode=disable from postgresql (#1748)

remove sslmode=disable from postgresql which leads to unsafe copy and paste situations
This commit is contained in:
Jonas Droste 2018-02-04 01:22:52 +01:00 committed by Jinzhu
parent 85f22393d9
commit 4be4b87efb

View File

@ -44,7 +44,7 @@ import (
)
func main() {
db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm sslmode=disable password=mypassword")
db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm password=mypassword")
defer db.Close()
}
```