Update job class
To have many job skills
This commit is contained in:
parent
95516837a0
commit
2facc646d1
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
class Job < ApplicationRecord
|
class Job < ApplicationRecord
|
||||||
belongs_to :party
|
belongs_to :party
|
||||||
|
has_many :skills, class_name: 'JobSkill'
|
||||||
|
|
||||||
belongs_to :base_job,
|
belongs_to :base_job,
|
||||||
foreign_key: 'base_job_id',
|
foreign_key: 'base_job_id',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue