From 6a15cbaf3e9756d186e12823a35f115e9a378dd8 Mon Sep 17 00:00:00 2001 From: Tute Costa Date: Mon, 12 Mar 2012 17:30:12 -0300 Subject: [PATCH] Dropping a table automatically drops it's indexes. --- .../impressionist/templates/create_impressions_table.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/generators/impressionist/templates/create_impressions_table.rb b/lib/generators/impressionist/templates/create_impressions_table.rb index 72de511..e3fa7d5 100644 --- a/lib/generators/impressionist/templates/create_impressions_table.rb +++ b/lib/generators/impressionist/templates/create_impressions_table.rb @@ -24,14 +24,6 @@ class CreateImpressionsTable < ActiveRecord::Migration end 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 end end