1 2 3 4 5 6 7 8 9 10 11
class IndicesForAnnotations < ActiveRecord::Migration def self.up add_index :info_request_events, :created_at add_index :info_request_events, :info_request_id end def self.down remove_index :info_request_events, :created_at remove_index :info_request_events, :info_request_id end end