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