4

I was developing in both RoR and Django based projects, and I don't like the way how RoR deals with migrations. For example, if I make huge changes to my models over 2 years, in Django I can delete all migrations and make new, single file, basing on actual state of my models. In RoR I will have, like 50 files, where some of them may be absolutely redundant (correct me if I'm wrong).

I would like to have RoR app, that would create migration basing on models, like in Django (so I assume models would need some information about fields).

Is there any gem/framework to RoR, that would add such feature?

1 Answer 1

5

The db/schema.rb file keeps track of the current state, and you can delete your migrations at any point and use the rake db:schema:load task to load the db/schema.rb into your DB.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.