Skip to content


Migrate DB automatically #9306

semaperepelitsa opened this Issue · 2 comments

3 participants


Rails 4 now shows you a helpful error when you have pending migrations instead of failing with some weird DB statement error. I like this addition! However, why don't we take a second step and do the migrations automatically?

I'm not sure that I considered all cases but I imagine this should be a safe thing to do in development environment.

Ruby on Rails member

First of all, we don't take feature requests on the Issues tracker. This question is better suited for the rails-core mailing list.

Secondly, it'd be irresponsible to just run them automatically, since you can have arbitrary Ruby code in migrations.


not to mention migrations can be "breaking" events which need to be handled with care and planning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.