So I\'ve been working on this web app for a year now and I would like to compile to schema into ONE migration, that way my text editor loads faster, git working directory isn\'t
Given that none of the answers mention it, this is the gem that does the job: https://github.com/jalkoby/squasher
It basically reruns the migrations from scratch until the date you specify, and then loads the resulting db/schema.rb
into an initial migration that replaces the old ones. It can also cleanup the schema_migrations
table so you don't get those
up ********** NO FILE **********
entries when running rake db:migrate:status
.