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