Permalink
Browse files

Improve rake task to handle only the remaining news items.

  • Loading branch information...
1 parent dd3f1a5 commit 461e6652de0dc258229882d0a9394d6033a3421c @andlima andlima committed Nov 25, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/tasks/news_items.rake
@@ -48,6 +48,7 @@ namespace :news_items do
activity_at_hash[nu.id] = nu.entry.activity_at
end
NewsItem.find_each(:batch_size => 1_000,
+ :entry_activity_at => nil,
:news_update_entry_type => "Question") do |ni|
print '.'
ni.set(:entry_activity_at => activity_at_hash[ni.news_update_id])

0 comments on commit 461e665

Please sign in to comment.