Search code examples
sequelize.jssequelize-cli

Node JS Sequelize, How to sync changes models on migrations


i am using sequelize cli, when i am created a model then migrations automatically created, but when i made changes on my model,then migrations can't automatically updated,so whether we can synchronize the changes that occur in the model to migration ?

thanks so much


Solution

  • You can write migrations for all the changes. Sequelize cli provides operation like db:migrate:create.

    You can refer the documentation for more info