I read this.
I tried it:
class Product < ActiveRecord::Base
has_many :variants
def skus; variants.map(&:sku).join(' ') end
multisearchable :against => [:name, :slug, :skus]
end
but I am getting:
PgSearch::Multisearch.rebuild(Product)
ActiveRecord::StatementInvalid: PG::Error: ERROR: column products.skus does not exist
What am I doing wrong? Could I take another alternative?