Merge pull request #208 from longnguyen11288/patch-1

Fixed spelling error
This commit is contained in:
Jinzhu 2014-08-28 10:44:12 +08:00
commit e6715ce175
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ db.DropTableIfExists(User{})
// Automating Migration
db.AutoMigrate(User{})
db.AutoMigrate(User{}, Proudct{}, Order{})
db.AutoMigrate(User{}, Product{}, Order{})
// Feel free to change your struct, AutoMigrate will keep your database up-to-date.
// Fyi, AutoMigrate will only *add new columns*, it won't update column's type or delete unused columns, to make sure your data is safe.