Frederick Cheung wrote:
> On Sep 28, 4:44�am, Andrew Pace <[email protected]> wrote:
>>
>> However, if I do the more traditional approach by issuing "rake
>> db:test:prepare and rake db:test:load," this seems to load the
>> information from the schema.rb file. �This file does not seem to
>> contain the foreign key constraints (or other db constraints, for that
>> matter).
>>
> 
> The ruby schema dumper doesn't understand things that activerecord
> doesn't, which includes foreign key constraints (There's a plugin
> somewhere that adds foreign key support to active record). 

That would be foreign_key_migrations.  You should *definitely* be using 
this rather than writing your foreign key constraints in execute 
statements.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to