Sha256: 010f5ab68c11b02f5e6f250ad94628b4889c69944d2432df49571d6f1f2e2bf0
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
class CreateSidejobs < ActiveRecord::Migration[5.1] def change create_table :sidejobs do |t| t.jsonb :data t.string :queue t.string :state, default: 'pending' t.integer :priority, default: 0 t.integer :attempts, default: 0 t.text :error t.datetime :processed_at t.datetime :scheduled_at t.timestamps null: false end add_index :sidejobs, :state add_index :sidejobs, :scheduled_at add_index :sidejobs, :attempts add_index :sidejobs, :priority end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidejobs-5.1.1 | lib/generators/sidejobs/install/templates/migration.rb |