Michael McGreevy
2006-Aug-23 20:06 UTC
[Rails] Re: Tests failing due to foreign key constraints? How to control order of creation of database tables...
> Have you had a look at the plug-ins from Red Hill Consulting, notably > schema_defining and foreign_key_migrations?> I use these and my tests run fine - I think the schema_defining plugin > (on which the foreign_key_migrations plug-in relies) means that in a > test environment the foreign keys are ignored allowing the database to > quickly create and drop content...Thanks for the info Ian. I think for the time being I''ll just drop the foreign key constraints, since according to chris-OIzkuoyqg0kAvxtiuMwx3w@public.gmane.org ''s email (rubyonrails-talk 21.Aug.06 12:28), the "rails way" is to implement all constraints in the ruby model. I''ve since found a blog post by DHH stating the same... it does make me feel a bit uneasy, but I''m going to see where "going with the rails flow" takes me... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---