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