[Rails-core] some (long) thoughts on migrations

Rick Bradley rick at rickbradley.com
Mon Feb 20 17:59:26 GMT 2006


* Rick Olson (technoweenie at gmail.com) [060220 01:15]:
> To work around this, I just started creating temporary models per
> migration.  I find that much nicer than reverting to
> ActiveRecord::Base.connection for my delicate sql needs.  It might be
> best to create the temporary model classes inside the migration class
> to keep them from clashing.  This temp model gives me a nicer way to
> manage the data, and frees me from worrying about filters,
> validations, changing method names, etc.

Rick --
That's a really slick way to handle this problem!  I'm going to have to
give that a try.  That makes my day.

So -- any similarly slick ideas on how to handle the "I want to add a
local migration without getting stomped by the upstream" issue I was
jabbering about at the beginning?

Thanks,
Rick
-- 
 http://www.rickbradley.com    MUPRN: 497
                       |  all those negative
   random email haiku  |  vibes get you? <fade out> Seen
                       |  both movies. They rock.


More information about the Rails-core mailing list