Saturday, May 06, 2017

pg_search Rails 5.1 Incompatibility

pg_search (2.0.1) is not compatible with Rails 5.1


rails db:migrate
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:


  class CreatePgSearchDocuments < ActiveRecord::Migration[4.2]