update README

This commit is contained in:
Jinzhu 2013-11-07 12:23:45 +08:00
parent c192b86d9e
commit 272ad45943
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ FYI, AutoMigrate will only add new columns, won't change column's type or delete
If table doesn't exist when AutoMigrate, it will run create table automatically.
(only postgres and mysql supported)
```go
db.AutoMigrate(User{})
```