Add population value to dev seed budget headings

This commit is contained in:
Bertocq
2017-06-27 23:28:22 +02:00
parent 97a7cb71d0
commit c96d58df75

View File

@@ -390,7 +390,8 @@ Budget::PHASES.each_with_index do |phase, i|
geozones = Geozone.reorder("RANDOM()").limit([2, 5, 6, 7].sample)
geozones.each do |geozone|
group.headings << group.headings.create!(name: geozone.name,
price: rand(1..100) * 100000)
price: rand(1..100) * 100000,
population: rand(1..50) * 10000)
end
end
end