]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/hack.rb
Patch composite_primary_keys to work around issue when one component of
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / hack.rb
1 class Hack < ActiveRecord::Base
2   set_primary_keys :name
3   has_many :comments, :as => :person
4   
5   has_one :first_comment, :as => :person, :class_name => "Comment"
6 end