salsify/delayed_job_heartbeat_plugin

View on GitHub
lib/generators/delayed_job_heartbeat_plugin/templates/migration.erb

Summary

Maintainability
Test Coverage
class CreateDelayedWorkers < ActiveRecord::Migration[<%= ActiveRecord::VERSION::MAJOR %>.<%= ActiveRecord::VERSION::MINOR %>]

  def change
    create_table(:delayed_workers) do |t|
      t.string :name
      t.string :version
      t.datetime :last_heartbeat_at
      t.string :host_name
      t.string :label
    end
  end

end