Commit 12437310 by Ngô Trung Hưng

fix nhe

parent 8780eb6b
Pipeline #724 canceled with stages
in 0 seconds
...@@ -36,10 +36,7 @@ class ImportDataCSV ...@@ -36,10 +36,7 @@ class ImportDataCSV
cities.each do |val| cities.each do |val|
next if val.blank? next if val.blank?
City.find_or_create_by(name: val) do |city| City.find_or_create_by(name: val) { |city| city.area = DOMESTIC }
city.name = val
city.area = DOMESTIC
end
end end
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