From 6bebc3f6949eb5895e4997e92da2a06303a71e1e Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 15 May 2017 16:52:35 -0700 Subject: [PATCH] add sort index to forum topics --- .../20170515235205_add_sort_indexes_to_forum_topics.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20170515235205_add_sort_indexes_to_forum_topics.rb diff --git a/db/migrate/20170515235205_add_sort_indexes_to_forum_topics.rb b/db/migrate/20170515235205_add_sort_indexes_to_forum_topics.rb new file mode 100644 index 000000000..af7673814 --- /dev/null +++ b/db/migrate/20170515235205_add_sort_indexes_to_forum_topics.rb @@ -0,0 +1,5 @@ +class AddSortIndexesToForumTopics < ActiveRecord::Migration + def change + add_index :forum_topics, [:is_sticky, :updated_at] + end +end