Profile

Cover photo
anonymiz.com
5 followers|18,502 views
AboutPostsPhotosVideos

Stream

anonymiz.com

Shared publicly  - 
 
anonymiz.com - Link to other sites anonymously
2
Sailor Web's profile photoanonymiz.com's profile photo
3 comments
 
looks here are a couple of commands you can use:

rake db:rollback will rollback the latest migration

rake db:rollback STEP=3 allows you to rollback by more than 1 migration (3 in this example)

rake db:reset will drop the database, recreate it and load the current schema into it.

and if you want to rollback then migrate back up again you can use

rake db:migrate:redo STEP=3 rollback 3 migrations and redo the migration
edgeguides.rubyonrails.org - Active Record Migrations — Ruby on Rails Guides

Add a comment...
Story
Tagline
anonymiz.com - Link to other sites anonymously
Links
Contact Information
Contact info
Address
https://www.anonymiz.com