Sha256: 827385a63a798f8bbac4122e4791473fdc24f28719a924c4fbb45a36c5ad5f1b

Contents?: true

Size: 519 Bytes

Versions: 13

Compression:

Stored size: 519 Bytes

Contents

class CreateDelayedJobs < ActiveRecord::Migration
  def self.up
    create_table :delayed_jobs do |t|
      t.integer  :priority, :default => 0
      t.integer  :attempts, :default => 0
      t.text     :handler
      t.string   :job_type
      t.string   :name
      t.text     :last_error
      t.datetime :run_at
      t.datetime :locked_at
      t.datetime :failed_at
      t.string   :locked_by
      t.datetime :finished_at
      t.timestamps
    end
  end

  def self.down
    drop_table :delayed_jobs
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blaxter-delayed_job-2.1.9 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.8 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.6 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.5 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.4 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.3 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.2 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.1 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.1.0 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.0.7 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.0.6 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.0.5 generators/delayed_job/templates/migration.rb
blaxter-delayed_job-2.0.3 generators/delayed_job/templates/migration.rb