Forum: Ruby on Rails Using migration to import data?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mantat (Guest)
on 2006-06-12 06: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..

This topic is locked and can not be replied to.