Sha256: b3a14d86a13b04d98f517b1ba81110f28f83b35b2d05f2af73ff79a286d3e43b

Contents?: true

Size: 445 Bytes

Versions: 7

Compression:

Stored size: 445 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up
    create_table :managed_emails do |t| 
      t.datetime :date_sent
      t.text :from
      t.text :reply_to
      t.text :to 
      t.text :cc 
      t.text :bcc
      t.text :headers
      t.string :message_id
      t.text :subject
      t.text :body
      t.text :caller

      t.timestamps
    end 
  end 

  def self.down
    drop_table :managed_emails
  end 
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
email_manager-1.0.0 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.6 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.5 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.4 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.3 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.2 lib/generators/email_manager/templates/migrations/install.rb
email_manager-0.0.1 lib/generators/email_manager/templates/migrations/install.rb