Class: CreateSentEmailData

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/email_events/templates/create_sent_email_data.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/email_events/templates/create_sent_email_data.rb', line 2

def change
   create_table :sent_email_data do |t|
    t.string :uuid, unique: true
    t.string :provider_message_id, :string
    t.string :mailer_class, null: false
    t.string :mailer_action,  null: false
    t.string :to, null: false
    t.text :data
    t.datetime :created_at
  end
end