aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120912113004_add_indexes_to_info_request_events.rb
blob: b3780322f8dcbf401ccd456e3815f7d962bd8308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class AddIndexesToInfoRequestEvents < ActiveRecord::Migration
  def self.up
      add_index :info_request_events, :incoming_message_id
      add_index :info_request_events, :outgoing_message_id
      add_index :info_request_events, :comment_id
  end

  def self.down
      remove_index :info_request_events, :incoming_message_id
      remove_index :info_request_events, :outgoing_message_id
      remove_index :info_request_events, :comment_id
  end
end