Importing (bootstrapping) the initial data from fixtures(.yml) with foreign keys in Rails 2.0


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 .

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs