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.

Комментарии

Популярные сообщения из этого блога

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

Connection string for MariaDB using ODBC

Celery like system based on django channels