[Rails] ActiveRecord setting IDs on auto increment fields

Alan C Francis
2006-01-11T20:47:20Z

Begin forwarded message:

> Subject: Re: [Rails] ActiveRecord setting IDs on auto increment fields
> To: rails@lists.rubyonrails.org
> Message-ID: <B7F7BC8E-240F-44C3-933A-0C4BAD273D8D@corpedia.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> ActiveRecord is creating it''s own IDs on an auto increment field
in
> my link table- is this normal? I can''t wrap my mind around why /
what
> to do about it...


I''m fumbling, but ISTR that link tables weren''t supposed have
an id
column...something to do with it interfering with the id column on
the primary party.

Or rather, if you needed extra attributes on the join, it needed it''s
own model and the default magic associations stopped working.

A.

--
mailto:alancfrancis@gmail.com