Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / models / parentship.rb
1 class Parentship < ActiveRecord::Base     
2   belongs_to :parent, :class_name => "Person", :foreign_key => "parent_id"
3   belongs_to :kid, :polymorphic => true, :foreign_type => "child_type"
4 end