3

I've created models using the following command.

$ node_modules/.bin/sequelize model:create --name XYZ --attributes "....."

But by mistake I deleted the folder containing migration script. Now I want to generate this script again. I tried using sequelize migration:create, but it generated any empty file. Please Help.

4

1 回答 1

-2

在生成新的迁移文件后,您现在需要做的是从此处复制骨架:http: //docs.sequelizejs.com/manual/tutorial/migrations.html#skeleton并使用以下功能自定义迁移你需要。

于 2017-07-31T11:44:04.170 回答