Sha256: 6af8e8558fcab035954e1581cee5b2e699c1b0197ca5865aab8bd7f205e8f963

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

class CreateInboxableInboxes < ActiveRecord::Migration[7.0]
  def change
    create_table :inboxes do |t|
      t.string :route_name,   null: false, default: '', index: true
      t.string :postman_name, null: false, default: ''
      t.text :payload, null: true

      t.string :event_id, null: false, default: '', index: { unique: true }
      t.integer :status, null: false, default: 0

      t.integer  :attempts, null: false, default: 0
      t.datetime :last_attempted_at, null: true

      t.string :processor_class_name, null: false, default: ''
      t.jsonb :metadata, default: {}

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inboxable-0.1.2 lib/templates/create_inboxable_inboxes.rb
inboxable-0.1.1 lib/templates/create_inboxable_inboxes.rb
inboxable-0.1.0 lib/templates/create_inboxable_inboxes.rb