Making change in database model - Sequelize
Making change in database model - Sequelize
Im a beginner and Im using Sequelize for my database. I created the model, did a migration after creating it, then added mocks seeds but realized that I made a mistake for two attributes data types. I need to change that but Im not sure what the correct way to do this. Do I have to: sequelize db:migrate:undo and then make my changes in the model and then run a migration Or do I have to drop the model and recreate it I guess, Im not completely sure what a migration does in the scheme of things.
Комментарии
Отправить комментарий