summaryrefslogtreecommitdiff
path: root/db/migrate/20170522210610_add_search_indexes.rb
blob: 2225d7b8e75931d8ad9387cfbcb66ed44feffbc1 (plain)
1
2
3
4
5
6
7
8
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