Sha256: 77e84caf5d85f6fc683546f51e8bbc6c0fa5a2c9fbc362677187ee344c3044a6

Contents?: true

Size: 540 Bytes

Versions: 6

Compression:

Stored size: 540 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
      t.string :zip_file

      t.timestamps
    end
  end

  def self.down
    drop_table :mail_templates
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
mail_engine-0.1.2 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.2 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.1 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.1 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.0 db/migrate/20110114030841_create_table_mail_template.rb
mail_engine-0.1.0 test/dummy/db/migrate/20110114030841_create_table_mail_template.rb