Sha256: 165a2c4a69784ba65e6045f5e7b092a9db4cbc2aba08343b871b2f15be5ff010

Contents?: true

Size: 606 Bytes

Versions: 34

Compression:

Stored size: 606 Bytes

Contents

class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
  def change
    create_table :action_mailbox_inbound_emails, id: primary_key_type do |t|
      t.integer :status, default: 0, null: false
      t.string  :message_id, null: false
      t.string  :message_checksum, null: false

      t.timestamps

      t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
    end
  end

  private
    def primary_key_type
      config = Rails.configuration.generators
      config.options[config.orm][:primary_key_type] || :primary_key
    end
end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
actionmailbox-8.0.0 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.2 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.1.5 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-8.0.0.rc2 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.1.2 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.1.4.2 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-8.0.0.rc1 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.1.1 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.1.4.1 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-8.0.0.beta1 db/migrate/20180917164000_create_action_mailbox_tables.rb
omg-actionmailbox-8.0.0.alpha9 db/migrate/20180917164000_create_action_mailbox_tables.rb
omg-actionmailbox-8.0.0.alpha8 db/migrate/20180917164000_create_action_mailbox_tables.rb
omg-actionmailbox-8.0.0.alpha7 db/migrate/20180917164000_create_action_mailbox_tables.rb
omg-actionmailbox-8.0.0.alpha4 db/migrate/20180917164000_create_action_mailbox_tables.rb
omg-actionmailbox-8.0.0.alpha3 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.1.4 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.1 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.0 db/migrate/20180917164000_create_action_mailbox_tables.rb
actionmailbox-7.2.0.rc1 db/migrate/20180917164000_create_action_mailbox_tables.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionmailbox-7.1.3.4/db/migrate/20180917164000_create_action_mailbox_tables.rb