]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/038_add_message_sender_index.rb
Update name of test
[rails.git] / db / migrate / 038_add_message_sender_index.rb
index 2b9b134cd53ee74989c41a5077ff1d372d6c2de0..723ef7814731daadb08b3635dd5489b7e622fb83 100644 (file)
@@ -1,9 +1,9 @@
 class AddMessageSenderIndex < ActiveRecord::Migration
   def self.up
-    add_index :messages, [:from_user_id], :name=> "messages_from_user_id_idx"
+    add_index :messages, [:from_user_id], :name => "messages_from_user_id_idx"
   end
 
   def self.down
-    drop_index :messages, :name=> "messages_from_user_id_idx"
+    remove_index :messages, :name => "messages_from_user_id_idx"
   end
 end