Massive data insert during migration

Will Gant
Thu, 14 Sep 2006 00:16:03 -0000

Hello all,
I''ve got a site that will be used by people (hopefully) all over the
world. One of the requirements of registration is country and province of
residence. I have a list of all the countries in the world and all their
subnational entities. Currently, the two lists are divided between a pair of
comma-delimited text files. If this were something less dynamic and cool,
I''d probably import it into Excel or some equivalent and then do some
find-and-replace voodoo to create the SQL statements to enter it into the
database. What would you do if you were doing this in rails and wanted to make
sure this data was inserted when you run a migrate task?

Will


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com