Fixed migration - rails uses remove_index not drop_index.
authorTom Hughes <tom@compton.nu>
Mon, 3 Aug 2009 23:55:51 +0000 (23:55 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 3 Aug 2009 23:55:51 +0000 (23:55 +0000)
db/migrate/038_add_message_sender_index.rb

index 2b9b134..0fb84bf 100644 (file)
@@ -4,6 +4,6 @@ class AddMessageSenderIndex < ActiveRecord::Migration
   end
 
   def self.down
-    drop_index :messages, :name=> "messages_from_user_id_idx"
+    remove_index :messages, :name=> "messages_from_user_id_idx"
   end
 end