Delete spending proposals
This commit is contained in:
@@ -10,7 +10,15 @@ namespace :settings do
|
||||
"banner-img.banner-img-one",
|
||||
"banner-img.banner-img-two",
|
||||
"banner-img.banner-img-three",
|
||||
"verification_offices_url"
|
||||
"verification_offices_url",
|
||||
"feature.spending_proposals",
|
||||
"feature.spending_proposal_features.phase1",
|
||||
"feature.spending_proposal_features.phase2",
|
||||
"feature.spending_proposal_features.phase3",
|
||||
"feature.spending_proposal_features.voting_allowed",
|
||||
"feature.spending_proposal_features.final_voting_allowed",
|
||||
"feature.spending_proposal_features.open_results_page",
|
||||
"feature.spending_proposal_features.valuation_allowed"
|
||||
]
|
||||
|
||||
deprecated_keys.each do |key|
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace :spending_proposals do
|
||||
|
||||
desc "Check if there are any spending proposals in DB"
|
||||
task check: :environment do
|
||||
if !Rails.env.production?
|
||||
puts "Please run this rake task in your production environment."
|
||||
else
|
||||
if SpendingProposal.any?
|
||||
puts "WARNING"
|
||||
puts "You have spending proposals in your database."
|
||||
puts "This model has been deprecated in favor of budget investments."
|
||||
puts "In the next CONSUL release spending proposals will be deleted."
|
||||
puts "If you do not need to keep this data, you don't have to do anything else."
|
||||
print "If you would like to migrate the data from spending proposals to budget investments "
|
||||
puts "please check this PR https://github.com/consul/consul/pull/3431."
|
||||
else
|
||||
puts "All good!"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user