File: member_detail.rb

package info (click to toggle)
rails 2%3A4.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 21,580 kB
  • sloc: ruby: 172,699; sql: 43; yacc: 43; sh: 14; makefile: 12
file content (7 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
class MemberDetail < ActiveRecord::Base
  belongs_to :member, :inverse_of => false
  belongs_to :organization
  has_one :member_type, :through => :member

  has_many :organization_member_details, :through => :organization, :source => :member_details
end