From ebc21919bf52a10ad6a3d45214aea4c2a584cdb8 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Tue, 11 Feb 2020 10:31:23 +0100 Subject: [PATCH] update models to reflect expected field names --- spec/support/models.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/models.rb b/spec/support/models.rb index f18beb4..a5208c7 100755 --- a/spec/support/models.rb +++ b/spec/support/models.rb @@ -2,7 +2,7 @@ class VectorModel < ActiveRecord::Base include PgSearchable - pg_search fields: %i[id name value], cache: :search_cache + pg_search fields: %i[vector_models.id vector_models.name vector_models.value], cache: :search_cache end class VectorModelWithoutCallback < ActiveRecord::Base @@ -32,7 +32,7 @@ end class SimpleVectorModel < ActiveRecord::Base self.table_name = :vector_models include PgSearchable - pg_search fields: %i[id name value], cache: :search_cache, language: :simple + pg_search fields: %i[vector_models.id vector_models.name vector_models.value], cache: :search_cache, language: :simple end class SimplePlayerModel < ActiveRecord::Base