Sha256: 9dfc4bd340f8a833f86cfde8ddc680d728aba8404ec16a9b2796752fd6a40e42

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

class MemberDetail < ActiveRecord::Base
  belongs_to :member, inverse_of: false
  belongs_to :organization
  has_one :member_type, through: :member
  has_one :membership, through: :member
  has_one :admittable, through: :member, source_type: "Member"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/member_detail.rb
ibm_db-5.4.1-x86-mingw32 test/models/member_detail.rb
ibm_db-5.4.0-x86-mingw32 test/models/member_detail.rb
ibm_db-5.3.2-x86-mingw32 test/models/member_detail.rb