Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
using rails 3 notation in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jul 10, 2011
1 parent 19fb9b6 commit 4a982b7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/generators/delayed_job/templates/migration.rb
@@ -1,5 +1,5 @@
class CreateDelayedJobs < ActiveRecord::Migration
def self.up
def change
create_table :delayed_jobs, :force => true do |table|
table.integer :priority, :default => 0 # Allows some jobs to jump to the front of the queue
table.integer :attempts, :default => 0 # Provides for retries, but still fail eventually.
Expand All @@ -21,9 +21,4 @@ def self.up

add_index :delayed_job_prerequisites, [:job_id, :prerequisite_job_id], :unique => true, :name => "index_delayed_job_prerequisites_job_prereq"
end

def self.down
drop_table :delayed_job_prerequisites
drop_table :delayed_jobs
end
end

0 comments on commit 4a982b7

Please sign in to comment.