Class: DropWebTemplates
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- DropWebTemplates
- Defined in:
- db/migrate/20130619191802_drop_web_templates.rb
Overview
Drops web_teamplates that was used with obsolete Mdm::WebTemplates model for old-style campaigns.
Constant Summary collapse
- TABLE_NAME =
Table being dropped.
:web_templates
Instance Method Summary collapse
-
#down ⇒ void
Recreates web_templates, but does not restore data.
-
#up ⇒ void
Drops web_templates.
Instance Method Details
#down ⇒ void
This method returns an undefined value.
Recreates web_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/20130619191802_drop_web_templates.rb', line 13 def down create_table TABLE_NAME do |t| # # Columns # t.string :body, :limit => 524288 t.string :name, :limit => 512 t.text :prefs t.string :title, :limit => 512 # # Foreign Keys # t.references :campaign end end |
#up ⇒ void
This method returns an undefined value.
Drops web_templates
38 39 40 |
# File 'db/migrate/20130619191802_drop_web_templates.rb', line 38 def up drop_table TABLE_NAME end |