Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* adding index to datamapper table

  • Loading branch information...
commit e9b1573e88e260492b825ac95941726eefbb1d4c 1 parent 7e9b9c0
@lpetre lpetre authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/delayed/backend/data_mapper.rb
View
4 lib/delayed/backend/data_mapper.rb
@@ -28,10 +28,10 @@ class Job
storage_names[:default] = 'delayed_jobs'
property :id, Serial
- property :priority, Integer, :default => 0
+ property :priority, Integer, :default => 0, :index => :run_at_priority
property :attempts, Integer, :default => 0
property :handler, Text
- property :run_at, Time
+ property :run_at, Time, :index => :run_at_priority
property :locked_at, Time
property :locked_by, String
property :failed_at, Time
Please sign in to comment.
Something went wrong with that request. Please try again.