Sha256: b9445674a82b962d5ffc0ea88850c957158a922d1f28cc9a5e58619a558700ee

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

class CreateEffectiveEmailTemplates < ActiveRecord::Migration[4.2]
  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    :content_type
      t.text      :body

      t.string    :template_name
      t.text      :template_body
      t.text      :template_subject
      t.text      :template_variables

      t.timestamps
    end

  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_email_templates-1.0.2 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-1.0.1 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-1.0.0 db/migrate/01_create_effective_email_templates.rb.erb