For example:
class User < ActiveRecord::Base
has_many :cars
end
# name :string(255)
class Car < ActiveRecord::Base
belongs_to :user
end
How would you use pg_search to do a full text search of the names of cars that only a single User instance has (versus all cars)?