Skip to content

Instantly share code, notes, and snippets.

@yoshuki
Created October 27, 2016 12:46
Show Gist options
  • Save yoshuki/8b9835b75b2dc6fb63d86b8c208d54a0 to your computer and use it in GitHub Desktop.
Save yoshuki/8b9835b75b2dc6fb63d86b8c208d54a0 to your computer and use it in GitHub Desktop.
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