Skip to content

Commit

Permalink
* adding index to datamapper table
Browse files Browse the repository at this point in the history
  • Loading branch information
lpetre committed Apr 7, 2010
1 parent 7e9b9c0 commit e9b1573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/delayed/backend/data_mapper.rb
Expand Up @@ -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
Expand Down

0 comments on commit e9b1573

Please sign in to comment.