]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/department.rb
The render method needs to be last, otherwise the error header won't get set. Needs...
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / department.rb
1 class Department < ActiveRecord::Base
2   # set_primary_keys *keys - turns on composite key functionality
3   set_primary_keys :department_id, :location_id
4   has_many :employees, :foreign_key => [:department_id, :location_id]
5 end