fix migration

parent 220791af
Pipeline #1343 failed with stages
in 0 seconds
class City < ApplicationRecord
has_and_belongs_to_many :jobs
has_and_belongs_to_many :companies
has_many :regions
end
class Company < ApplicationRecord
has_and_belongs_to_many :cities
has_many :jobs
end
class Industry < ApplicationRecord
has_and_belongs_to_many :jobs
end
class Job < ApplicationRecord
has_and_belongs_to_many :users
has_and_belongs_to_many :industries
has_and_belongs_to_many :cities
has_many :applies_jobs
has_many :users, through: :applies_jobs
belongs_to :company
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