[Rails] Re: AR: How to store and restore in YML.
Jake Janovetz
jakejanovetz at yahoo.com
Mon Jan 2 01:55:44 GMT 2006
Duane Johnson wrote:
> Have you taken a look at the way ActiveRecord does ordered fixtures?
> It uses YAML::Omap to ensure that the hashes are each inserted in
> their proper order.
>
> http://www.ruby-doc.org/stdlib/libdoc/yaml/rdoc/classes/YAML/Omap.html
>
> Duane Johnson
> (canadaduane)
> http://blog.inquirylabs.com/
Hi Duane-
Can you explain this a bit more? I'm not sure how these ordered
fixtures fit into my question.
My primary concern isn't so much the order as it is recreating records
properly with new association IDs. I can't create records with the same
ID because they may be added to a different database that may already
have those IDs.
Jake
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list