obdev/app/models/employer.rb

11 lines
223 B
Ruby

class Employer < ApplicationRecord
has_many :participants
has_many :workers, through: :participants
# Association with Vendor if needed
def full_name
"#{first_name} #{last_name}"
end
end