lib/generators/ahoy_email/templates/install.rb in ahoy_email-0.0.1 vs lib/generators/ahoy_email/templates/install.rb in ahoy_email-0.0.2

- old
+ new

@@ -1,20 +1,23 @@ class <%= migration_class_name %> < ActiveRecord::Migration def change create_table :ahoy_messages do |t| + t.string :token + # user t.integer :user_id t.string :user_type - # message + # optional t.text :subject t.text :content # 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 end