As I move through the iterations on my application*(s) I accumulate migrations. As of just now there are 48 such files, spanning about 24 months' activity.
I'm considering taking my current schema.rb
and making that the baseline.
I'm also considering deleting (subject to source control, of course) the existing migrations and creating a nice shiny new single migration from my my current schema? Migrations tend to like symbols, but rake db:schema:dump
uses strings: should I care?
Does that seem sensible? If so, at what sort of interval would such an exercise make sense? If not, why not?
And am I missing some (rake?) task that would do this for me?
*
In my case, all apps are Rails-based, but anything that uses ActiveRecord migrations would seem to fit the question.