Allow multiple default columns #2

Merged
bilal.catic merged 5 commits from allow-multiple-default-columns into join-bug-fix-with-multiple-default-columns 2020-04-24 11:28:06 +02:00
Showing only changes of commit fc5fdd3db2 - Show all commits

View File

@@ -5,6 +5,12 @@ class VectorModel < ActiveRecord::Base
pg_search fields: %i[vector_models.id vector_models.name vector_models.value], cache: :search_cache
end
class VectorModelWithTwoDefaultColumns < ActiveRecord::Base
self.table_name = :vector_models
include PgSearchable
pg_search fields: %i[vector_models.id vector_models.name vector_models.value], default_fields: %i[vector_models.name vector_models.value], cache: :search_cache
end
class VectorModelWithMappings < ActiveRecord::Base
self.table_name = :vector_models
include PgSearchable