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
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to