Fixed spelling error

This commit is contained in:
Long Nguyen 2014-08-27 12:56:25 -04:00
parent 8f22434ded
commit 4fa2faf64c
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.