Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spendign Proposals migrator to Budget Investment #1059

Merged
merged 5 commits into from
Dec 15, 2017

Conversation

bertocq
Copy link

@bertocq bertocq commented Dec 14, 2017

Just migrating stuff partially to get milestones working, we'll do it right at consul and completly here later on

Tested in pre! Use bin/rake spending_proposals:migrate_to_budgets RAILS_ENV=production when at pro

@voodoorai2000 voodoorai2000 merged commit ba2934d into master Dec 15, 2017
@voodoorai2000 voodoorai2000 deleted the spending_proposals_to_budget_migration branch December 15, 2017 08:27
@decabeza decabeza mentioned this pull request Dec 15, 2017
voodoorai2000 added a commit that referenced this pull request Jan 17, 2019
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
voodoorai2000 added a commit that referenced this pull request Feb 7, 2019
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
voodoorai2000 added a commit that referenced this pull request Mar 5, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants