class CreateMailableTemplates
Public Class Methods
down()
click to toggle source
# File lib/generators/mailable_template/templates/create_mailable_templates.rb, line 18 def self.down drop_table :mailable_templates end
up()
click to toggle source
# File lib/generators/mailable_template/templates/create_mailable_templates.rb, line 2 def self.up ## Email history create_table :mailable_templates do |t| t.integer :email_template_id t.integer :author_id t.string :recipients t.text :body # t.datetime :sent_at #uncomment if you intend to create templates before sending, ie maintenance emailing. t.timestamps end add_index :mailable_templates, :author_id add_index :mailable_templates, :email_template_id end