This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/db/migrate/20170522210610_add_search_indexes.rb
MrYummy 1316d7ca03 Added Searching Features
* Added Thread Search Feature

* Added User Search Feature

* Re-organized searching, added @mention support to author search
2017-06-18 13:11:36 -04:00

9 lines
305 B
Ruby

class AddSearchIndexes < ActiveRecord::Migration
def change
add_index :forumthreads, [:title, :content], type: :fulltext
add_index :forumthreads, :title, type: :fulltext
add_index :forumthreads, :content, type: :fulltext
add_index :threadreplies, :content, type: :fulltext
end
end