Roll back all rails migrations or drop tables and modify migrations (start from scratch) Roll back all rails migrations or drop tables and modify migrations (start from scratch) ruby ruby

Roll back all rails migrations or drop tables and modify migrations (start from scratch)


First, rollback your migrations to version 0.

rake db:migrate VERSION=0

Then you manually delete your migrations and models, leaving the controllers and views intact.


Just delete all files in app/models and db/migrate then run:

rake db:reset