Sha256: 77ca643f3a5b9a14c0f564d4407965170e2d5f35b27ba6b0827bb7993e716af9

Contents?: true

Size: 734 Bytes

Versions: 1

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

Sequel.migration do
  change do
    create_table :events do
      column   :uuid, :uuid, primary_key: true
      String   :type,                     null: false
      Integer  :version,                  null: false
      String   :publisher,                null: false
      column   :data, :json,              null: false
      String   :error_message,            null: true,  default: nil
      column   :error_details, :json,     null: true,  default: nil
      DateTime :sent_at,                  null: true,  default: nil
      DateTime :received_at,              null: false, default: Sequel::CURRENT_TIMESTAMP
      DateTime :processed_at,             null: true,  default: nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cyclone_lariat-0.2.1 db/migrate/02_add_events.rb