Class: DropAttachmentsEmailTemplates
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- DropAttachmentsEmailTemplates
- Defined in:
- db/migrate/20130619160512_drop_attachments_email_templates.rb
Overview
Drops obsolete attachments_email_templates join table.
Constant Summary collapse
- TABLE_NAME =
Table being dropped.
:attachments_email_templates
Instance Method Summary collapse
-
#down ⇒ void
Recreates attachments_email_templates table.
-
#up ⇒ void
Drops attachmetns_email_templates table.
Instance Method Details
#down ⇒ void
This method returns an undefined value.
Recreates attachments_email_templates table
17 18 19 20 21 22 |
# File 'db/migrate/20130619160512_drop_attachments_email_templates.rb', line 17 def down create_table TABLE_NAME, :id => false do |t| t.references :attachment t.references :email_template end end |
#up ⇒ void
This method returns an undefined value.
Drops attachmetns_email_templates table
27 28 29 |
# File 'db/migrate/20130619160512_drop_attachments_email_templates.rb', line 27 def up drop_table TABLE_NAME end |