Sha256: 4dab48536fe7b2bef82eca8bff6701b92bf59fd41c0af2506f6dd1f5603e47e8

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :ahoy_messages do |t|
      # user
      t.integer :user_id
      t.string :user_type

      # message
      t.text :subject
      t.text :content

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ahoy_email-0.0.1 lib/generators/ahoy_email/templates/install.rb