Skip to content

Commit

Permalink
[codeforamerica#18] admin:analysemodels rake task drops wordcounts, k…
Browse files Browse the repository at this point in the history
…eywords tables
  • Loading branch information
Philip Hale committed Sep 2, 2013
1 parent 470eed2 commit 8c5a3b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/analyse_models.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ namespace :admin do

task :analysemodels => :environment do
pbar = ProgressBar.new("Please wait...", Article.count)
Keyword.destroy_all
Wordcount.destroy_all
Article.all.each do |article|
article.analyse_now
pbar.inc
Expand Down

0 comments on commit 8c5a3b3

Please sign in to comment.