ignatiusreza/activejob-trackable

View on GitHub
lib/generators/active_job/trackable/templates/migration.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class CreateActiveJobTrackers < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :active_job_trackers, force: true do |t|
      t.string :provider_job_id, index: true
      t.string :key, index: { unique: true }

      t.timestamps
    end
  end
end