Sha256: 3378cf813d9bacd00b823193b29a2a38b88f5fea421aff9b9e9087a66a8f8321

Contents?: true

Size: 605 Bytes

Versions: 8

Compression:

Stored size: 605 Bytes

Contents

class Phobos01CreateEvents < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def up
    create_table :events do |t|
      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
    end

    add_index :events, [:topic, :group_id, :checksum]
  end

  def down
    drop_table :events
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phobos_db_checkpoint-1.1.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-1.0.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.5.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.4.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.3.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.2.0 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.1.1 templates/migrate/phobos_01_create_events.rb.erb
phobos_db_checkpoint-0.1.0 templates/migrate/phobos_01_create_events.rb.erb