1 2 3 4 5 6
class Organization < ActiveRecord::Base has_many :member_details has_many :members, :through => :member_details scope :clubs, { :from => 'clubs' } end