aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/sponsor.rb
blob: 50c2c2d76c63e9c5bbb110d268c4f4d984bba5cc (plain) (blame)
1
2
3
4
class Sponsor < ActiveRecord::Base
  belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id"
  belongs_to :sponsorable, :polymorphic => true
end