- Install dependencies
yarn installornpm i - If you start server first time execute
npm run migrate - Start server
npm run start:dev
- For creating specific migration execute
npm run migration:make migration-name
This will create 20180414073437-migration-name.js file
- To apply specific migration run
./node_modules/.bin/babel-node ./node_modules/.bin/sequelize db:migrate 20180414073437-migration-name
- To undo specific migration execute
./node_modules/.bin/babel-node ./node_modules/.bin/sequelize db:migrate:undo 20180414073437-migration-name