Reputation: 10004
I have a large csv file (must be spreadsheet-editable) of countries and regions. Countries have_many regions.
The file has multiple lines for the same country, i.e:
USA, New York
USA, Pennsylvania
etc.
I'd like to use seed-fu to seed my database with this information. I think I should use Writer to take the CSV file and generate a seed file, but I'm not sure how to do this while retaining the associations. Is there a standard method for this?
Upvotes: 1
Views: 1120
Reputation: 10004
I ended up doing this without Writer. My answer is:
Upvotes: 1