T K
2008-Apr-03 12:10 UTC
Importing (bootstrapping) the initial data from fixtures(.yml) with foreign keys in Rails 2.0
Hi, I''m trying to import data from YAML files in Rails 2.0.2. I learned that new features came out for fixtures at RailsCasts http://railscasts.com/episodes/81 . And, in Rails 1.2.6 and before, I used a "rake" task I found online. Looks like there are many variations for this "bootstrap" file. Do you know if there''s a file available that does something similar (i.e., importing data to development/production database) for Rails 2.0.2 and deals with foreign keys automatically? Any help would be greatly appreciated. Tek --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---