Sha256: 7294c33888d7d04c9a2432e16b4aebeaf047e01c8de16fc7d7126251c639622b

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

class CreateAsyncRequestJobs < ActiveRecord::Migration
  def change # rubocop:disable Metrics/MethodLength
    create_table :async_request_jobs do |t|
      t.string :worker
      t.integer :status
      t.integer :status_code
      t.text :response
      t.string :uid
      t.text :params

      t.timestamps null: false
    end
    add_index :async_request_jobs, :status
    add_index :async_request_jobs, :uid, unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
async_request-1.0.0 lib/templates/create_async_request_jobs.rb