Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
  • Jaime Bellmyer
    • 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
    by Jaime Bellmyer at 5:15 PM

    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
    Jaime Bellmyer created the ticket at 6:49 AM

    has_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...