]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/test/fixtures/membership.rb
Use a list for the main menu, rather than br-separated links
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / fixtures / membership.rb
1 class Membership < ActiveRecord::Base
2   # set_primary_keys *keys - turns on composite key functionality
3   set_primary_keys :user_id, :group_id
4   belongs_to :user
5         belongs_to :group
6         has_many :statuses, :class_name => 'MembershipStatus', :foreign_key => [:user_id, :group_id]
7 end