]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/038_add_message_sender_index.rb
Added ignoring unused translations auth.providers
[rails.git] / db / migrate / 038_add_message_sender_index.rb
index 0fb84bf94565f8b29c17bfa043b82e6d1cd9afaa..b862b1cc436deebf775e74f163a12cf68a5b492f 100644 (file)
@@ -1,9 +1,9 @@
-class AddMessageSenderIndex < ActiveRecord::Migration
+class AddMessageSenderIndex < ActiveRecord::Migration[4.2]
   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
-    remove_index :messages, :name=> "messages_from_user_id_idx"
+    remove_index :messages, :name => "messages_from_user_id_idx"
   end
 end