Update PR with master

Rebase master branch so that this PR can
be updated with the latest changes.
Conflicts has been solved and some specs
updated to fit the new changes. dev_seeds
has been also adapted to the new format.
This commit is contained in:
iagirre
2018-04-02 13:03:09 +02:00
parent d02b3e0486
commit 21a6d3495a
4 changed files with 21 additions and 27 deletions

View File

@@ -56,6 +56,12 @@ section "Creating Investments" do
end
end
section "Marking investments as visible to valuators" do
(1..50).to_a.sample.times do
Budget::Investment.reorder("RANDOM()").first.update(visible_to_valuators: true)
end
end
section "Geolocating Investments" do
Budget.all.each do |budget|
budget.investments.each do |investment|