Solved @object.id = 1
On 24 ago, 17:12, FF <[email protected]> wrote: > Hi all, > I have a table (little) with 2 fields: code and name. > I want to populate records for this table from an external file with > ';' delimitation. (code;name). > Every populate operation delete all the records and write them again. > I mean there is no appendig records in the process. > Anything works fine, but the internal ID (KEY) for the table > increments automatically with each populate process. > Is there any way to set it to 1 in the process ? I mean a ruby > sentence (not DB external handling). > Thanks in advance > Fabian --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

