Re: postgres adapater problem with create_table :id => false

Marnen Laibow-Koser
Tue, 20 Oct 2009 16:14:43 -0000

JeffV wrote:
> Solved (at least for now):
> I used the composite primary keys plugin but listed only a single (and
> fake) primary key:
>   set_primary_keys :doc_id  # note plural!
>
> :doc_id is not a PK, and for this logging table it''s possible
there is
> no combination of columns that will yield a single row, depending on
> the timing of multi- inserts. But the insert now works and I can move
> on!
>

Great!  Now declare doc_id as the PK in the DB.

> Jeff

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://www.ruby-forum.com/.