Files
api/app/models/baclight/carrier.rb
T
Jason Jordan 1c80e642f5
CI / scan_ruby (push) Failing after 37s
CI / lint (push) Failing after 39s
Production Build Working
2026-09-16 12:41:44 -04:00

20 lines
582 B
Ruby

module Baclight
class Carrier < BaclightRecord
self.table_name = 'Carriers'
has_many :baclight_brokers, class_name: "Baclight::Broker", foreign_key: "carrier_id", primary_key: "id"
has_many :baclight_employers,
through: :baclight_brokers,
source: :baclight_employers
has_many :baclight_members,
through: :baclight_employers,
source: :baclight_members
alias_attribute :id, :id
alias_attribute :name, :name
alias_attribute :created_at, :created_at
alias_attribute :updated_at, :updated_at
end
end