Re: :table_name_with_underscore and join models

Greg Donald
Mon, 03 Nov 2008 23:13:59 -0000

On Mon, Nov 3, 2008 at 5:02 PM, gdonald
<gdonald-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> ActiveRecord::Base.primary_key_prefix_type
> = :table_name_with_underscore
>
> in my current project.
>
> My problem is that this setting seems to be causing me some issues
> with my join model''s primary keys.

I forgot to mention, I also tried

set_sequence_name "USER_UGROUPS_SEQ"

in my join model, but I got the same error.