Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
http://www.casebook.net
MIT License
1.31k stars 369 forks source link

Could not find generator pg_search:migration:multisearch. #74

Open chuckweinberger opened 11 years ago

chuckweinberger commented 11 years ago

I have a rails 3.0.3 application with a story model and an associated post model. This morning I added the pg_search gem to my gemfile and bundle installed. pg_search_scope worked exactly as advertised, and I could search across the story and post models with associations.

I then decided to implement text search using multi-search so to take advantages of indexing across associations. Running the migration generator, however, resulted in the above error.

nertzy commented 11 years ago

Could you share what you typed and what the output was? Thanks!

chuckweinberger commented 11 years ago

Sorry for the oversight

$ rails g pg_search:migration:multisearch
Could not find generator pg_search:migration:multi search.

I'm using pg_search-0.5.7, and like I wrote earlier, it worked just fine when searching using pg_search_scope.

Don't hesitate to ask for any additional info that I can provide, and thanks in advance for any help that you can give.

Chuck

On Nov 9, 2012, at 5:40 PM, Grant Hutchins wrote:

Could you share what you typed and what the output was? Thanks!

— Reply to this email directly or view it on GitHub.

nertzy commented 11 years ago

I was just able to reproduce the problem using Rails 3.0.3. I'm looking into it now.

nertzy commented 11 years ago

Upgrading to Rails 3.0.4 fixed the issue for me. I'd suggest going all the way up to 3.0.17 to pick up the various bug fixes and security enhancements.

ghost commented 9 years ago

Re-opening this... Using Rails v4.2.3, Ruby 2.2, I'm doing the same command as above and getting the following error: Could not find generator 'pg_search:migration:multisearch'

libovness commented 8 years ago

I had the same issue with rails g pg_search:migration multisearch. rails g pg_search:migration:multisearch worked though. Rails 5.0.0 and Ruby 2.3.1

emikaijuin commented 6 years ago

I am also having this issue, Rails 4.2.5

reinisla commented 6 years ago

Same issue. Rails 5.2.1, Ruby 2.4.4, PostgreSQL 10.2, ActiveRecord 5.2.1

Bypass this by making the migration manually. The migrations can be found in pg_search/lib/pg_search/migration/templates