Permalink
Browse files

Remove the live flag population task.

First off, it's been run on production, so it's no longer necessary.
Second, we have cleared the live flag from all artefacts whose owning apps
aren't using the new API adapters, so this task is actively dangerous.
  • Loading branch information...
1 parent 375b65b commit 05153093f4a7f45b805c792fef8d4e5c67ce4804 @fatbusinessman fatbusinessman committed Jul 3, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/tasks/live_flag.rake
View
@@ -1,12 +0,0 @@
-namespace :live_flag do
- task :populate => :environment do
- # Disable the search observer to avoid a mass update of Rummager
- Artefact.observers.disable :update_search_observer do
- Artefact.where(:owning_app.ne => "publisher").update(live: true)
- Artefact.where(owning_app: "publisher").each do |artefact|
- artefact.live = artefact.any_editions_published?
- artefact.save!
- end
- end
- end
-end

0 comments on commit 0515309

Please sign in to comment.