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.

This project is archived and is in readonly mode.

Changeset [594a281d663dd8a7801651f4aea7e5b7f4f02548] by José Valim

Revision 594a281d663dd8a7801651f4aea7e5b7f4f02548, committed by José Valim · September 1st, 2009 @ 06:18 PM

Assert primary key does not exist in habtm when the association is defined, instead of doing that everytime a record is inserted.

[#3128 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/594a281d663dd8a7801651f4aea7e5...

5 changed files

  • M activerecord/lib/active_record/associations.rb
  • M activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
  • M activerecord/test/cases/associations/habtm_join_table_test.rb
  • M activerecord/test/fixtures/edges.yml
  • M activerecord/test/schema/schema.rb