![]() | E1: After rake:db:rollback, Rails 4.0 |
|
06 Mar 2013, 20:18
Sean Coleman (3 posts) |
Using Rails 4.0: After rolling back the combine_items_in_cart migration, we expect to be able to view the contents of the cart without the items combined. I get ActiveRecord::PendingMigrationError instead. In the changelog for Rails 4.0, we have: How can we do what the book does, and roll back a migration and view the app in the pre-migration state? Is this really a new thing for Rails 4.0? Thanks, Sean |
|
06 Mar 2013, 20:45
Sam Ruby (549 posts) |
With Rails 4, you need to rename the file (so it isn’t considered pending). Look for the ‘mv’ commands before and after the third get /carts/1 in the following page: http://intertwingly.net/projects/AWDwR4/checkde… I’ll update the book to mention this. Thanks! |
| You must be logged in to comment |

