Frederick Cheung wrote: > It is a pretty fundamental assumption of Active Record that tables > have a primary key. There is (or at least there used to be) a plugin > out there that added support for composite primary keys > > Fred
@fred: You may be right, but in that case, the documentation is wrong. From http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html we have: > :id - Whether to automatically add a primary key column. Defaults > to true. Join tables for has_and_belongs_to_many should set > :id => false. And, as I hinted at, this IS a join table. What's interesting is that I cleared the table and rebuilt it -- no error. When I tried to update the entire table (with identical values), it gave the same error on the same record. Curiouser and curiouser. - ff -- 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.

