diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-11 09:49:37 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-11 09:49:37 +0100 |
commit | c6a06ce6cf09946f661d870dfaed85dfc0d6efd0 (patch) | |
tree | f2c7d8686e9b42149a0e1b667f06fa1a1eba092f /lib/tasks | |
parent | 527f577fcec629e3a39072a144ef96d31b193f8b (diff) | |
parent | 927e97c57725a424eb4fb25f3f4a1a758e9b7728 (diff) |
Merge branch 'feature/faster-request-game' into develop
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/temp.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/temp.rake b/lib/tasks/temp.rake index 9decc13db..e49a84ecb 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| |