test/fixtures/department.rb in composite_primary_keys-3.1.6 vs test/fixtures/department.rb in composite_primary_keys-3.1.7
- old
+ new
@@ -1,5 +1,4 @@
class Department < ActiveRecord::Base
- # set_primary_keys *keys - turns on composite key functionality
set_primary_keys :department_id, :location_id
has_many :employees, :foreign_key => [:department_id, :location_id]
end