[Rails] Re: Help with loading data with sequential id

2009-07-13 Thread khagimoto
Thanks for the pointer! I modified the codes.yml file to look like this (below) and now it inserts ordered list with sequential ids. I had to try it several times to get the spacing right.. I had two spaces (no tabs) in front of the key:value pair initially, but it needed four spaces instead. =

[Rails] Re: Help with loading data with sequential id

2009-07-13 Thread Franco Catena
I suppose you want use the omap YAML type. Read about it in http://api.rubyonrails.org/classes/Fixtures.html and in http://yaml.org/type/omap.html. Regards. Franco Catena. On Jul 13, 12:34 pm, khagimoto wrote: > Hello, > > I'm trying to load data into my mysql table using the following: > > ==