Forum: Ruby on Rails Using migration to import data?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ab4c5cd5d9cc028fcba7a5eec8e1bf30?d=identicon&s=25 Mantat (Guest)
on 2006-06-12 04:41
Hi all,

I have a large set of data to load, many of which are part of a big
act_as_tree model. Right now, I am testing the creation with migration
for the first layer of the tree but for the second layer, I have to know
the ID of the parent_ID. So far, it is easy because I can guess it by
looking at the insertion order, but I was wondering if there are any
better way to do this..

Thanks!
This topic is locked and can not be replied to.