aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/temp.rake
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-09-12 08:55:26 +0100
committerLouise Crow <louise.crow@gmail.com>2012-09-12 08:55:26 +0100
commit8fbbbeba48fc0fe4467805d0d15783aeea5d100d (patch)
tree9fe08395d28931c4ef46b6a5e910aadcc61d2fc7 /lib/tasks/temp.rake
parent52c3e28d09fd75fdbf467c96909e20a86aeaa7fa (diff)
parent926ab82ada79adea9d0092898e0ee60c9ff6e53e (diff)
Merge branch 'develop' into wdtk
Diffstat (limited to 'lib/tasks/temp.rake')
-rw-r--r--lib/tasks/temp.rake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/temp.rake b/lib/tasks/temp.rake
index 669cdf989..e50ee2cb8 100644
--- a/lib/tasks/temp.rake
+++ b/lib/tasks/temp.rake
@@ -1,5 +1,14 @@
namespace :temp do
+ desc 'Populate the request_classifications table from info_request_events'
+ task :populate_request_classifications => :environment do
+ InfoRequestEvent.find_each(:conditions => ["event_type = 'status_update'"]) do |classification|
+ RequestClassification.create!(:created_at => classification.created_at,
+ :user_id => classification.params[:user_id],
+ :info_request_event_id => classification.id)
+ end
+ end
+
desc "Remove plaintext passwords from post_redirect params"
task :remove_post_redirect_passwords => :environment do
PostRedirect.find_each(:conditions => ['post_params_yaml is not null']) do |post_redirect|