aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/essay.rb
blob: ec4b982b5b1129df58f872c53ab0585d26a880c1 (plain) (blame)
1
2
3
4
5
class Essay < ActiveRecord::Base
  belongs_to :writer, :primary_key => :name, :polymorphic => true
  belongs_to :category, :primary_key => :name
  has_one :owner, :primary_key => :name
end