update models to reflect expected field names

This commit is contained in:
Bilal Catic
2020-02-11 10:31:23 +01:00
parent f696a7cd20
commit ebc21919bf

View File

@@ -2,7 +2,7 @@
class VectorModel < ActiveRecord::Base class VectorModel < ActiveRecord::Base
include PgSearchable 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 end
class VectorModelWithoutCallback < ActiveRecord::Base class VectorModelWithoutCallback < ActiveRecord::Base
@@ -32,7 +32,7 @@ end
class SimpleVectorModel < ActiveRecord::Base class SimpleVectorModel < ActiveRecord::Base
self.table_name = :vector_models self.table_name = :vector_models
include PgSearchable 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 end
class SimplePlayerModel < ActiveRecord::Base class SimplePlayerModel < ActiveRecord::Base