mirror of https://github.com/go-gorm/gorm.git
Merge pull request #220 from tschaub/patch-1
Code example fix in readme
This commit is contained in:
commit
1ad419004f
|
@ -30,7 +30,7 @@ var user User
|
||||||
db.First(&user)
|
db.First(&user)
|
||||||
|
|
||||||
// creating a new User
|
// creating a new User
|
||||||
DB.Save(&User{Name: "xxx"}) // table "users"
|
db.Save(&User{Name: "xxx"}) // table "users"
|
||||||
```
|
```
|
||||||
|
|
||||||
* Column name is the snake case of field's name
|
* Column name is the snake case of field's name
|
||||||
|
|
Loading…
Reference in New Issue