Is there any tool that works similar to Django South, but for Node?
Now I'm working with Sequelize. If I got it right, Sequelize does not have an option to create migration files based on existing models. So, to create a new model/table, the steps are:
- Create model with
sequelize model:create <model meta>. - Edit generated migration file - add actual code for creating tables
in DB under
upsection. - Run migration with
sequelize db:migrate.
I'm looking for something that can create migration files based on existing models, manage it similar to what South can do for Django.
Is there any option?
sequelize-autoto generate models from an existing schema, but I don't think it can handle relationships. Seems like a decent start if you wanted to submit a patch though... :)