cli icon indicating copy to clipboard operation
cli copied to clipboard

Possible to generate migrations to update existing models?

Open andyhennie opened this issue 8 years ago • 3 comments

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

andyhennie avatar Nov 05 '16 16:11 andyhennie

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

gotrevor avatar Dec 06 '16 16:12 gotrevor

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 :)

andyhennie avatar Dec 06 '16 16:12 andyhennie

is this feature added ??

Swarag-N avatar May 03 '20 10:05 Swarag-N