Sha256: 12d3c389031afa130fba56ad3977a71057095074debf50c1d804becc1248f9e1

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 Bytes

Contents

ActiveRecord::Schema.define do
  create_table :ahoy_messages, force: true do |t|
    t.string :token

    # user
    t.text :to
    t.integer :user_id
    t.string :user_type

    # optional - feel free to remove
    t.string :mailer
    t.text :subject
    t.text :content

    # optional
    t.string :utm_source
    t.string :utm_medium
    t.string :utm_term
    t.string :utm_content
    t.string :utm_campaign

    # timestamps
    t.timestamp :sent_at
    t.timestamp :opened_at
    t.timestamp :clicked_at
  end

  add_index :ahoy_messages, [:token]
  add_index :ahoy_messages, [:user_id, :user_type]
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ahoy_email-0.5.2 test/internal/db/schema.rb
ahoy_email-0.5.1 test/internal/db/schema.rb
ahoy_email-0.5.0 test/internal/db/schema.rb
ahoy_email-0.4.0 test/internal/db/schema.rb
ahoy_email-0.3.2 test/internal/db/schema.rb
ahoy_email-0.3.1 test/internal/db/schema.rb
ahoy_email-0.3.0 test/internal/db/schema.rb