How to keep Migrations with Model in Sync? #17192
Unanswered
prince-bansal
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I've been using Sequelize with nodejs for a while but without migrations. Now I want to dive into migrations, I just noticed that while creating migrations we get the changes in the db only. I want to understand the flow of how to keep models and db in sync using migrations.
Suppose, we want to add a column inside an already created table, do we run migration first and then update the model manually or is there a way that can update the models automatically and keep them in sync with DB?
Beta Was this translation helpful? Give feedback.
All reactions