test/fixtures/department.rb in composite_primary_keys-10.0.5 vs test/fixtures/department.rb in composite_primary_keys-11.0.0.beta1

- old
+ new

@@ -1,5 +1,5 @@ -class Department < ActiveRecord::Base - self.primary_keys = :department_id, :location_id - has_many :employees, :foreign_key => [:department_id, :location_id] - has_one :head, :class_name => 'Employee', :foreign_key => [:department_id, :location_id], :dependent => :delete -end +class Department < ActiveRecord::Base + self.primary_keys = :department_id, :location_id + has_many :employees, :foreign_key => [:department_id, :location_id] + has_one :head, :class_name => 'Employee', :foreign_key => [:department_id, :location_id], :dependent => :delete +end