updates budget dev seeds
This commit is contained in:
@@ -416,9 +416,9 @@ tags = Faker::Lorem.words(10)
|
|||||||
end
|
end
|
||||||
|
|
||||||
puts " ✅"
|
puts " ✅"
|
||||||
print "Selecting Investments"
|
print "Balloting Investments"
|
||||||
Budget.balloting.reorder("RANDOM()").limit(3).each do |budget|
|
Budget.balloting.last.investments.each do |investment|
|
||||||
budget.investments.feasible.reorder("RANDOM()").limit(10).update_all(selected: true)
|
investment.update(selected: true, feasibility: "feasible")
|
||||||
end
|
end
|
||||||
|
|
||||||
puts " ✅"
|
puts " ✅"
|
||||||
|
|||||||
Reference in New Issue
Block a user