diff options
-rw-r--r-- | db/migrate/064_indices_for_annotations.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/064_indices_for_annotations.rb b/db/migrate/064_indices_for_annotations.rb new file mode 100644 index 000000000..5b89271fe --- /dev/null +++ b/db/migrate/064_indices_for_annotations.rb @@ -0,0 +1,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 |