aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/club.rb
blob: 3ddb691dfb66a15f75ef3f8469d7677059abf123 (plain) (blame)
1
2
3
4
5
6
7
class Club < ActiveRecord::Base
  has_many :memberships
  has_many :members, :through => :memberships
  has_many :current_memberships
  has_one :sponsor
  has_one :sponsored_member, :through => :sponsor, :source => :sponsorable, :source_type => "Member"
end