Update job class

To have many job skills
This commit is contained in:
Justin Edmund 2023-06-04 22:56:01 -07:00
parent 95516837a0
commit 2facc646d1

View file

@ -2,6 +2,7 @@
class Job < ApplicationRecord
belongs_to :party
has_many :skills, class_name: 'JobSkill'
belongs_to :base_job,
foreign_key: 'base_job_id',