Jaime Bellmyer
Not a member
Jaime Bellmyer's latest activity
Wednesday, February 25 2009
2068
[PATCH] HABTM Relationships Fail When Join Table has Primary Key
was updated
in Ruby on Rails
-
- Tag changed from activerecord, duplicate, has_and_belongs_to_many, join_table, primary_key to activerecord, duplicate, has_and_belongs_to_many, join_table, patch, primary_key
After re-reading the ActiveRecord::Associations::ClassMethods docs, a new solution comes to mind. We're telling people in the docs not to have a primary key on ...
-
Jaime Bellmyer created the ticket at 6:49 AMhas_and_belongs_to_many relationships fail in an unexpected way when the join table has a primary key with the same name as a column in the associated table. Th...