Sha256: abf0f8e6ba19fd34190e43d65c87e7b03a8c4c5a7fcef2f6660c63e73cc5221f

Contents?: true

Size: 1.07 KB

Versions: 10

Compression:

Stored size: 1.07 KB

Contents

require "./workers"

ActiveRecord::Schema.define(:version => 0) do
  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.
    table.text     :handler                      # YAML-encoded string of the object that will do work
    table.text     :last_error                   # reason for last failure (See Note below)
    table.datetime :run_at                       # When to run. Could be Time.zone.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)
    table.string   :locked_by                    # Who is working on this object (if locked)
    table.string   :queue                        # The name of the queue this job is in
    table.timestamps
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
qe-0.4.0 examples/migrate.rb
qe-0.3.5 examples/migrate.rb
qe-0.3.4 examples/migrate.rb
qe-0.3.3 examples/migrate.rb
qe-0.3.2 examples/migrate.rb
qe-0.3.1 examples/migrate.rb
qe-0.3.0 examples/migrate.rb
qe-0.2.1 examples/migrate.rb
qe-0.2.0 examples/migrate.rb
qe-0.1.3 examples/migrate.rb