Sha256: 3f4c3db466f58eb6d0c678731dc5254c94ecbd9dcf0f40f5144489ed53c1ad65

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 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 :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

8 entries across 8 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.6.0 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.5.1 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.5.0 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.6 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.5 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.4 db/migrate/01_create_effective_email_templates.rb.erb
effective_email_templates-0.4.3 db/migrate/01_create_effective_email_templates.rb.erb