Class: DropAttachmentsEmailTemplates

Inherits:
ActiveRecord::Migration
  • Object
show all
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

Instance Method Details

#downvoid

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

#upvoid

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