Commit 16ebb07b by nnnghia98

edit model.rb

parent 8ef1850c
......@@ -14,10 +14,7 @@
#
class City < ApplicationRecord
<<<<<<< HEAD
scope :vn_cities, -> {where region: "Việt Nam"}
scope :inter_cities, -> {where region: "#"}
=======
has_many :city_jobs
>>>>>>> first edit this branch
end
......@@ -31,5 +31,4 @@
class Job < ApplicationRecord
belongs_to :company
has_many :city_jobs
end
has_many :cities, through: :city_jobs
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