Migrate DB automatically #9306

Closed
semaperepelitsa opened this Issue Feb 16, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@semaperepelitsa
Contributor

semaperepelitsa commented Feb 16, 2013

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.

@steveklabnik

This comment has been minimized.

Show comment
Hide comment
@steveklabnik

steveklabnik Feb 16, 2013

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.

Member

steveklabnik commented Feb 16, 2013

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.

@mbhnyc

This comment has been minimized.

Show comment
Hide comment
@mbhnyc

mbhnyc Feb 16, 2013

Contributor

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

Contributor

mbhnyc commented Feb 16, 2013

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