forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create budget investment's votes for all corresponding spending proposal's votes. We already have budget investments for every spending proposal as of the partial migration done[1]. In method `create_budget_investment_vote` we are using 'yes' as the `vote` for consistency with the implementation in the `Investment`'s model[1]. With that acts_as_votable understands that it has to create a `vote_flag` of true before saving the vote to DB. [1] #1059 [2] https://github.com/AyuntamientoMadrid/consul/blob/master/app/models/budget/investment.rb#L296
- Loading branch information
1 parent
5cc5fd9
commit aa6a416
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters