Skip to content

Commit

Permalink
Use :text for the last_error field
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jul 19, 2009
1 parent e41a11d commit ff77172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/delayed_job/templates/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def self.up
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.
table.text :handler # YAML-encoded string of the object that will do work
table.string :last_error # reason for last failure (See Note below)
table.text :last_error # reason for last failure (See Note below)
table.datetime :run_at # When to run. Could be Time.now for immediately, or sometime in the future.
table.datetime :locked_at # Set when a client is working on this object
table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
Expand Down

0 comments on commit ff77172

Please sign in to comment.