On Tue, Dec 8, 2009 at 9:00 PM, Clive Crous <[email protected]> wrote: > I have pretty much what you said as an alternate: > > Before do > DB[ :table_name_a ].delete > DB[ :table_name_b ].delete > > DB[ :table_name_a ] << { :foo => :bar } > end
I have a couple of concerns with this: 1, I wanted to use the production scripts for loading the seed data - although it shouldn't be too hard to reuse; and 2, We will have to be careful to maintain the list of tables as the schema changes and make sure we get the order we delete tables right to ensure we don't violate any foreign key constraints! -- /tooky -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
