Skip to content

Commit

Permalink
Merge 1f41fe0 into 711f08d
Browse files Browse the repository at this point in the history
  • Loading branch information
spajus committed Aug 14, 2013
2 parents 711f08d + 1f41fe0 commit 18ac762
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/delayed_job/templates/migration.rb
Expand Up @@ -14,6 +14,8 @@ def self.up
end

add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'
add_index :delayed_jobs, [:locked_at, :locked_by], :name => 'delayed_jobs_lock',
:length => { :locked_by => 100 }
end

def self.down
Expand Down

0 comments on commit 18ac762

Please sign in to comment.