Class: DropEmailTemplates
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- DropEmailTemplates
- Defined in:
- db/migrate/20130619190652_drop_email_templates.rb
Overview
Drops email_templates table that used to back obsolete Mdm::EmailTemplate module for old-style campaigns.
Constant Summary collapse
- TABLE_NAME =
Table being dropped.
:email_templates
Instance Method Summary collapse
-
#down ⇒ void
Recreates email_templates, but does not restore data.
-
#up ⇒ void
Drops email_templates.
Instance Method Details
#down ⇒ void
This method returns an undefined value.
Recreates email_templates, but does not restore data.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'db/migrate/20130619190652_drop_email_templates.rb', line 13 def down create_table TABLE_NAME do |t| # # Columns # t.text :body t.string :name, :limit => 512 t.text :prefs t.string :subject, :limit => 1024 # # Foreign Keys # t.references :parent t.references :campaign end end |
#up ⇒ void
This method returns an undefined value.
Drops email_templates
38 39 40 |
# File 'db/migrate/20130619190652_drop_email_templates.rb', line 38 def up drop_table TABLE_NAME end |