From 82c88eec741c87bf7ab9452fd96595fbe03d30ad Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 17 Jun 2014 17:30:22 -0400 Subject: [PATCH] Add post_id index to topic_links --- .../20140617193351_add_post_id_index_on_topic_links.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20140617193351_add_post_id_index_on_topic_links.rb diff --git a/db/migrate/20140617193351_add_post_id_index_on_topic_links.rb b/db/migrate/20140617193351_add_post_id_index_on_topic_links.rb new file mode 100644 index 00000000000..aae44fbc1d0 --- /dev/null +++ b/db/migrate/20140617193351_add_post_id_index_on_topic_links.rb @@ -0,0 +1,9 @@ +class AddPostIdIndexOnTopicLinks < ActiveRecord::Migration + def up + add_index :topic_links, :post_id + end + + def down + remove_index :topic_links, :post_id + end +end