class Export < ApplicationRecord has_one( :job_status, -> { where(reference_type: "Export") }, class_name: "JobStatus::Status", foreign_key: :reference ) def ready? raise "subclass responsibility" end end