Sha256: 103d5f7ddb7c9d057efb22d4d908722e0cfd5f215d442bbad3c2eda5eb79f45b
Contents?: true
Size: 689 Bytes
Versions: 8
Compression:
Stored size: 689 Bytes
Contents
class CreateExecutionHistories < ActiveRecord::Migration[5.0] def change create_table :execution_histories do |t| t.string :hostname, limit: 180 t.integer :worker_id, limit: 1 t.string :queue, limit: 180, default: "@default", null: false t.integer :job_definition_id, null: false t.integer :job_instance_id, null: false t.text :shell, null: false t.datetime :started_at, null: false t.datetime :finished_at, null: false end add_column :executions, :hostname, :string, limit: 180 add_column :executions, :worker_id, :integer, limit: 1 add_index :execution_histories, [:worker_id, :started_at], using: :btree end end
Version data entries
8 entries across 8 versions & 1 rubygems