Sha256: 73916784fcc013ae3cf19f2492ef1327ff2c32859c0378111be1397886c7bd91

Contents?: true

Size: 560 Bytes

Versions: 26

Compression:

Stored size: 560 Bytes

Contents

class CreateTableMailTemplate < ActiveRecord::Migration
  def self.up
    create_table :mail_templates do |t|
      t.string :name
      t.string :subject
      t.string :path
      t.string :format, :default => 'html'
      t.string :locale
      t.string :handler, :default => 'liquid'
      t.text :body
      t.boolean :partial, :default => false
      t.boolean :for_marketing, :default => false
      t.string :layout, :default => 'none'
      t.string :zip_file

      t.timestamps
    end
  end

  def self.down
    drop_table :mail_templates
  end
end

Version data entries

26 entries across 13 versions & 1 rubygems

Version Path
mail_engine-0.1.5 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.5 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.4 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.4 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.3 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.3 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb