Dropping a table automatically drops it's indexes.

This commit is contained in:
Tute Costa 2012-03-12 17:30:12 -03:00
parent d1f1a352d4
commit 6a15cbaf3e
1 changed files with 0 additions and 8 deletions

View File

@ -24,14 +24,6 @@ class CreateImpressionsTable < ActiveRecord::Migration
end end
def self.down def self.down
remove_index :impressions, :name => :poly_request_index
remove_index :impressions, :name => :poly_ip_index
remove_index :impressions, :name => :poly_session_index
remove_index :impressions, :name => :controlleraction_request_index
remove_index :impressions, :name => :controlleraction_ip_index
remove_index :impressions, :name => :controlleraction_session_index
remove_index :impressions, :user_id
drop_table :impressions drop_table :impressions
end end
end end