Cli: Possible to generate migrations to update existing models?

Created on 5 Nov 2016  路  3Comments  路  Source: sequelize/cli

Is there a way to generate migrations to update existing models? eg. adding a column.

feature

Most helpful comment

in rails you can do
rails generate migration AddPhoneColumnToUsers phone:integer

Which generates the migrations automatically. it's really handy.
More info: http://guides.rubyonrails.org/active_record_migrations.html

Random rant:
If just a Node ORM would be a bit more mature and well-polished like ActiveRecord, I think a lot even more people would use node for web dev. I'm switching back to rails after testing out Node+Express+Sequelize, it's just to much hassle compared to how well-polished things are in the rails-world. But I hope it changes in the future for Node, since rails is slowww :)

All 3 comments

Can you be more explicit in what you'd like to see?

in rails you can do
rails generate migration AddPhoneColumnToUsers phone:integer

Which generates the migrations automatically. it's really handy.
More info: http://guides.rubyonrails.org/active_record_migrations.html

Random rant:
If just a Node ORM would be a bit more mature and well-polished like ActiveRecord, I think a lot even more people would use node for web dev. I'm switching back to rails after testing out Node+Express+Sequelize, it's just to much hassle compared to how well-polished things are in the rails-world. But I hope it changes in the future for Node, since rails is slowww :)

is this feature added ??

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jakobud picture Jakobud  路  4Comments

radglob picture radglob  路  6Comments

LucasBadico picture LucasBadico  路  5Comments

gotrevor picture gotrevor  路  5Comments

PavelPolyakov picture PavelPolyakov  路  5Comments