follow these steps to generate your migration script
-
run command
yarn
-
for script generating first configure your database in sequelize.config.js file
-
for migartion running first configure database.json file in config directory
-
run command
yarn generate
-
run command
yarn migration:up
for creating -
run command
yarn migration:down
for reverting
Make sure that shell script file is generated by our personal purpose you can modify it by your need.