Permalink
Browse files

Merge pull request #15 from mindscratch/develop

updated mongoid job adapter
  • Loading branch information...
2 parents 0fcb1cf + a2eff90 commit 25b337e532b0316a5b14d06c7bdd38d898626482 Craig Wickesser committed Jan 22, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/navvy/job/mongoid.rb
@@ -11,16 +11,16 @@ class Job
field :priority, :type => Integer, :default => 0
field :return, :type => String
field :exception, :type => String
- field :parent_id, :type => BSON::ObjectId
+ field :parent_id, :type => Moped::BSON::ObjectId
field :created_at, :type => Time
field :run_at, :type => Time
field :started_at, :type => Time
field :completed_at, :type => Time
field :failed_at, :type => Time
- index [[:priority, Mongo::DESCENDING]]
- index [[:created_at, Mongo::ASCENDING]]
-
+ index({priority: -1})
+ index({created_at: 1})
+
##
# Add a job to the job queue.
#

0 comments on commit 25b337e

Please sign in to comment.