Sha256: 385bdb0b1e5ed4792e68ab2cbd6337423204e7c8604bfe479b50329933b38e75

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literals: true

module Jobshop
  class CompanyPerson < ApplicationRecord
    self.primary_keys = %i[ organization_id company_id person_id ]

    belongs_to :organization

    belongs_to :company, inverse_of: :company_people,
      foreign_key: %i[ organization_id company_id ]

    belongs_to :person, inverse_of: :company_person,
      foreign_key: %i[ organization_id person_id ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.163 app/models/jobshop/company_person.rb