fix migration

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