Sha256: ba36db6a6c5994e78c1a80cad83c7b8bb4c338a834f68b899f5ce497115f5228
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
class CreateSidejobs < ActiveRecord::Migration def change create_table :sidejobs do |t| t.jsonb :data t.string :queue t.string :status, default: 'pending' t.integer :priority, default: 0 t.integer :attempts, default: 0 t.text :error t.datetime :failed_at t.datetime :completed_at t.datetime :processed_at t.datetime :scheduled_at t.timestamps null: false end add_index :sidejobs, %i(status scheduled_at) add_index :sidejobs, :priority end end
Version data entries
3 entries across 3 versions & 1 rubygems