Sha256: ad82f4cefda4a55042c854a2e37c427bc6179bc97d8389fedee006dc64db1c3e

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

class Phobos02CreateFailures < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def up
    create_table :failures do |t|
      t.timestamp :created_at,     index: false
      t.string    :topic,          index: true
      t.string    :group_id,       index: true
      t.string    :entity_id,      index: true
      t.timestamp :event_time,     index: true
      t.string    :event_type,     index: true
      t.string    :event_version,  index: true
      t.string    :checksum,       index: true
      t.json      :payload,        index: false
      t.json      :metadata,       index: false
      t.string    :error_class,    index: false
      t.string    :error_message,  index: false
      t.json      :error_backtrace
    end
  end

  def down
    drop_table :failures
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phobos_db_checkpoint-1.1.0 templates/migrate/phobos_02_create_failures.rb.erb
phobos_db_checkpoint-1.0.0 templates/migrate/phobos_02_create_failures.rb.erb