renaming rake tasks to touch debates and proposals

This commit is contained in:
rgarcia
2015-11-18 17:53:30 +01:00
parent f63500b0c8
commit 4be9f7b065
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
namespace :debates do namespace :debates do
desc "Updates all debates by recalculating their hot_score" desc "Updates all debates by recalculating their hot_score"
task hot_score: :environment do task touch: :environment do
Debate.find_in_batches do |debates| Debate.find_in_batches do |debates|
debates.each(&:save) debates.each(&:save)
end end

View File

@@ -1,6 +1,6 @@
namespace :proposals do namespace :proposals do
desc "Updates all proposals by recalculating their hot_score" desc "Updates all proposals by recalculating their hot_score"
task hot_score: :environment do task touch: :environment do
Proposal.find_in_batches do |proposals| Proposal.find_in_batches do |proposals|
proposals.each(&:save) proposals.each(&:save)
end end