diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-13 09:13:33 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-13 09:13:33 +0100 |
commit | 65b1d387a135ff027d2dfc2972ad97d2b3d85288 (patch) | |
tree | 81f17dc5688bf59bd649b1c0ef094e6a34943ad8 | |
parent | 74ea84125001615614da6d1478e4d0c94f48b41f (diff) |
Add some indexes to help IncomingMessage.fully_destroy find records more efficiently by info_request_event_id
-rw-r--r-- | db/migrate/20120913080807_add_info_request_event_index_to_track_things_sent_emails.rb | 9 | ||||
-rw-r--r-- | db/migrate/20120913081136_add_info_request_event_index_to_user_info_request_sent_alerts.rb | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20120913080807_add_info_request_event_index_to_track_things_sent_emails.rb b/db/migrate/20120913080807_add_info_request_event_index_to_track_things_sent_emails.rb new file mode 100644 index 000000000..d119f55b3 --- /dev/null +++ b/db/migrate/20120913080807_add_info_request_event_index_to_track_things_sent_emails.rb @@ -0,0 +1,9 @@ +class AddInfoRequestEventIndexToTrackThingsSentEmails < ActiveRecord::Migration + def self.up + add_index :track_things_sent_emails, :info_request_event_id + end + + def self.down + remove_index :track_things_sent_emails, :info_request_event_id + end +end diff --git a/db/migrate/20120913081136_add_info_request_event_index_to_user_info_request_sent_alerts.rb b/db/migrate/20120913081136_add_info_request_event_index_to_user_info_request_sent_alerts.rb new file mode 100644 index 000000000..aa9f404f7 --- /dev/null +++ b/db/migrate/20120913081136_add_info_request_event_index_to_user_info_request_sent_alerts.rb @@ -0,0 +1,9 @@ +class AddInfoRequestEventIndexToUserInfoRequestSentAlerts < ActiveRecord::Migration + def self.up + add_index :user_info_request_sent_alerts, :info_request_event_id + end + + def self.down + remove_index :user_info_request_sent_alerts, :info_request_event_id + end +end |