ruby on rails - PendingMigrationError after running db:rollback -
I'm a bit confused about migration and rollback in Rails 4.0.x
I use my rack DB: Migrate and Rake DB: site before and after a migration change using rollback.
However, when I try to view the site after rollback, I get an ActiveRecord error for a pending meeting error.
Migration is pending; Run 'Rake DB: RARS_NV = Evolution' to resolve this issue Migrate
It seems that after my rollback my site is not allowed to see if it works is?
I assumed that using rollback, you can take your app back to its previous state and keep using it there. The Active Record Migration Guide does not cover this situation,
Even though you have rolled back the database, The file system still has a migration under DB / Migrate, the railways know that it has not run. You must either migrate (as mentioned by the user3865871 above, or you need to remove the migration file from the file system.
Comments
Post a Comment