Skip to content

Instantly share code, notes, and snippets.

@sebyx07
Created August 21, 2014 09:56
Show Gist options
  • Save sebyx07/2135016f6eb9b3f5ac57 to your computer and use it in GitHub Desktop.
Save sebyx07/2135016f6eb9b3f5ac57 to your computer and use it in GitHub Desktop.
class Party < ActiveRecord::Base
has_one :captain_membership, :foreign_key => 'party_id', :class_name => "Party::Membership::Captain"
has_many :basic_memberships, :foreign_key => 'party_id', :class_name => "Party::Membership::Basic"
has_many :memberships, :foreign_key => 'party_id', :class_name => "Party::Membership"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment