Sha256: e0af42637173eacde410fa039a9feae85a2246623315e307781000d526c6619a

Contents?: true

Size: 853 Bytes

Versions: 4

Compression:

Stored size: 853 Bytes

Contents

class Phobos02CreateFailures < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def up
    create_table :phobos_db_checkpoint_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 :phobos_db_checkpoint_failures
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phobos_db_checkpoint-2.2.0 templates/migrate/phobos_02_create_failures.rb.erb
phobos_db_checkpoint-2.1.0 templates/migrate/phobos_02_create_failures.rb.erb
phobos_db_checkpoint-2.0.0 templates/migrate/phobos_02_create_failures.rb.erb
phobos_db_checkpoint-2.0.0.rc1 templates/migrate/phobos_02_create_failures.rb.erb