From 46c138fb124e4fbd9794a5645c62822c957a4b81 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 23 Apr 2015 02:07:24 +1000 Subject: [PATCH] PERF: add missing index on topic_links --- .../20150422160235_add_link_post_id_index_on_topic_links.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20150422160235_add_link_post_id_index_on_topic_links.rb diff --git a/db/migrate/20150422160235_add_link_post_id_index_on_topic_links.rb b/db/migrate/20150422160235_add_link_post_id_index_on_topic_links.rb new file mode 100644 index 000000000..0ccb65627 --- /dev/null +++ b/db/migrate/20150422160235_add_link_post_id_index_on_topic_links.rb @@ -0,0 +1,5 @@ +class AddLinkPostIdIndexOnTopicLinks < ActiveRecord::Migration + def change + add_index :topic_links, [:link_post_id, :reflection] + end +end