Add rake task to check for spending proposals #3441
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References
Context
Spending Proposals was used in the first Participatory Budgets to store proposals created by citizens. Since then Spending Proposals have become deprecated in favor of Budget Investments.
Only the first forks will have Spending Proposals in their Production servers. The forks that started using CONSUL since version 0.7 released on April 25th 2016 do not need to migrate. Please check out the rake tasks in this PR to make sure you do not have Spending Proposals in your Production environment.
Objectives
Add a rake task to be executed in the production environment to check for spending proposals. In case spending proposals are found, display a link to the PR with instructions on how to migrate to Budget Investments.
Release Notes
To run the rake task to check for spending proposals run this command:
bin/rake spending_proposals:check RAILS_ENV=production