]> git.openstreetmap.org Git - rails.git/blob - db/migrate/038_add_message_sender_index.rb
Merge remote-tracking branch 'upstream/pull/2182'
[rails.git] / db / migrate / 038_add_message_sender_index.rb
1 class AddMessageSenderIndex < ActiveRecord::Migration[5.0]
2   def self.up
3     add_index :messages, [:from_user_id], :name => "messages_from_user_id_idx"
4   end
5
6   def self.down
7     remove_index :messages, :name => "messages_from_user_id_idx"
8   end
9 end