X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cbbfdf394880d29c9a6cc2259fcfd474088fa9bb..e7d82be15e6dea23625a1c503a56acde09188bad:/db/migrate/038_add_message_sender_index.rb?ds=sidebyside diff --git a/db/migrate/038_add_message_sender_index.rb b/db/migrate/038_add_message_sender_index.rb index 2b9b134cd..b862b1cc4 100644 --- a/db/migrate/038_add_message_sender_index.rb +++ b/db/migrate/038_add_message_sender_index.rb @@ -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 - drop_index :messages, :name=> "messages_from_user_id_idx" + remove_index :messages, :name => "messages_from_user_id_idx" end end