rails/activerecord/test/models/toy.rb
Jim Remsik and Tim Pope 1e6c50e21b Ensure has_many :through works with changed primary keys [#736 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-09 13:43:28 +00:00

5 lines
79 B
Ruby

class Toy < ActiveRecord::Base
set_primary_key :toy_id
belongs_to :pet
end