On 12 November 2015 at 02:04, Amit Mhatre <amitshob@gmail.com> wrote:
> I was wondering if there should be a way to run the app even if some
> migrations are pending. Lets say I have created a migration...but at this
> time I am not sure if I want to run it as is ....am anticipating
> modifications. What if in the error page "Migrations are pending. To
> resolve this issue, run: bin/rake db:migrate RAILS_ENV=development" there
> is a mention of a way to override the error and run the app as is...or
> does it already exist. Then one doesn't need to run the migration and later
> new ones to modify it..
If you have already committed the migration to your source control
system then just rollback to the previous version. If you have not
committed it but are using git then git stash will save it temporarily
in the stash so you can recover it later. If you are not using a
source control system then start now. It is almost trivial to setup
git and after you start using it you will wonder how you survived
before.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv0Mq4mmgNiCLLkTyQB4vKqF07ZoGLLcG4USiveAA6Myg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment