update README

This commit is contained in:
Jinzhu 2013-11-07 12:23:45 +08:00
parent c192b86d9e
commit 272ad45943

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. If table doesn't exist when AutoMigrate, it will run create table automatically.
(only postgres and mysql supported)
```go ```go
db.AutoMigrate(User{}) db.AutoMigrate(User{})
``` ```