Commit 6b13fec7 by Mai Hoang Thai Ha

fixed some bugs

parent bf41bbb7
class Company < ApplicationRecord
has_many :jobs
has_many :jobs, dependent: :destroy
end
......@@ -2,7 +2,7 @@ class Job < ApplicationRecord
has_and_belongs_to_many :industries
has_and_belongs_to_many :cities
belongs_to :company
has_many :apply_jobs
has_many :favorite_jobs
has_many :history_job
has_many :apply_jobs, dependent: :destroy
has_many :favorite_jobs, dependent: :destroy
has_many :history_job, dependent: :destroy
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment