Sha256: f03d17b66e4c6e3b038883feea90499fbf9ff1d082d75f987f20258d8caedec3
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literals: true module Jobshop class Inspection::Tuple < ApplicationRecord self.primary_keys = %i[ organization_id report_id position ] belongs_to :organization belongs_to :report, class_name: "Jobshop::Inspection::Report", inverse_of: :tuples, foreign_key: %i[ organization_id report_id ] has_many :results, class_name: "Jobshop::Inspection::Result", inverse_of: :tuple, foreign_key: %i[ organization_id report_id position ] has_many :criteria, through: :results end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.167 | app/models/jobshop/inspection/tuple.rb |
jobshop-0.0.163 | app/models/jobshop/inspection/tuple.rb |