From aa4a1fa39bea5b3760bbcc78cd1e5ce496ecf1c8 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 17 Jun 2014 17:11:49 -0400 Subject: [PATCH] Revert "Add index on topic_links post_id. Remove a redundant index." Doesn't always work. --- ...7193351_add_and_remove_indexes_on_topic_links.rb | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb diff --git a/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb b/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb deleted file mode 100644 index 1ddbf6e8f8..0000000000 --- a/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb +++ /dev/null @@ -1,13 +0,0 @@ -class AddAndRemoveIndexesOnTopicLinks < ActiveRecord::Migration - def up - # Index (topic_id) is a subset of (topic_id, post_id, url) - remove_index :topic_links, :topic_id - - add_index :topic_links, :post_id - end - - def down - remove_index :topic_links, :post_id - add_index :topic_links, :topic_id - end -end