When I navigate through iterations in my application *, I accumulate migrations. Currently, there are 48 such files, covering about 24 months of activity.
I am considering entering the current schema.rb and creating a baseline.
I am also considering the possibility of removing (taking into account source control, of course) existing migrations and creating a beautiful new brilliant migration from my current scheme? Migrations tend to resemble characters, but rake db:schema:dump uses strings: do I care?
Does that seem reasonable? If so, in what interval does such an exercise make sense? If not, why not?
And I missed some (rake?) Task that will do this for me?
* In my case, all applications are based on Rails, but everything that uses ActiveRecord migrations seems to answer the question.
ruby ruby-on-rails activerecord migration
Mike Woodhouse Sep 28 '09 at 11:11 2009-09-28 11:11
source share