Dropping a table automatically drops it's indexes.
This commit is contained in:
parent
d1f1a352d4
commit
6a15cbaf3e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue