Created
October 27, 2016 12:46
-
-
Save yoshuki/8b9835b75b2dc6fb63d86b8c208d54a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddFullTextSearchIndexToArticles < ActiveRecord::Migration | |
def change | |
add_index :articles, [:id, :title, :body], using: 'pgroonga' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment