Sha256: 894ddf8960c55564b5643299bce36ab815e822bf34ce57a62f3f031acb826391

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

class CreateEffectiveEmailTemplates < ActiveRecord::Migration
  def self.up
    create_table <%= @email_templates_table_name %> do |t|
      t.string :subject
      t.string :from
      t.string :bcc
      t.string :cc
      t.string :slug,     :null => false
      t.text :body,       :null => false
      t.text :template,   :null => false
    end

    add_index <%= @email_templates_table_name %>, :slug
  end

  def self.down
    drop_table <%= @email_templates_table_name %>
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_email_templates-0.4.2 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.1 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.0 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.3.5 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.3.4 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.3.3 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.3.1 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.3.0 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.2.8 db/migrate/01_create_effective_email_templates.rb.erb