Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
make sure collections exist before dropping
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrochalakis committed Jul 26, 2010
1 parent bd29e49 commit bddd417
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/resque.rb
Expand Up @@ -124,10 +124,10 @@ def add_indexes
end

def drop
@mongo.drop
@workers.drop
@failures.drop
@stats.drop
@mongo.drop if @mongo
@workers.drop if @workers
@failures.drop if @failures
@stats.drop if @stats
@mongo = nil
end

Expand Down

0 comments on commit bddd417

Please sign in to comment.