add document about DropTableIfExists.

This commit is contained in:
Shirou WAKAYAMA 2014-08-05 23:16:22 +09:00
parent 5ad9306146
commit b4fc3d9753
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ db.CreateTable(User{})
// Drop table
db.DropTable(User{})
// Drop table if exists
db.DropTableIfExists(User{})
// Automating Migration
db.AutoMigrate(User{})