Sha256: f5d836afa3f156b4b419f46b083a4371f34927a9e4073a1486515663b2990acb

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :<%= job_log_table_name %> do |t|
      t.string :sidekiq_jid, :null => false
      t.string :status
      t.string :item_type
      t.text :args, limit: 4294967295
      t.text :logs, limit: 4294967295
      t.boolean :retry, null: false, default: false
      t.string :queue
      t.text :error_message, limit: 4294967295
      t.text :backtrace, limit: 4294967295
      t.datetime :finished_at
      t.timestamps
    end

    add_index :<%= job_log_table_name %>, :sidekiq_jid, :unique => true
    add_index :<%= job_log_table_name %>, :updated_at
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobs_dashboard-0.3.4 lib/generators/active_record/templates/migration.rb