add model with two default fields
This commit is contained in:
@@ -5,6 +5,12 @@ class VectorModel < ActiveRecord::Base
|
|||||||
pg_search fields: %i[vector_models.id vector_models.name vector_models.value], cache: :search_cache
|
pg_search fields: %i[vector_models.id vector_models.name vector_models.value], cache: :search_cache
|
||||||
end
|
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
|
class VectorModelWithMappings < ActiveRecord::Base
|
||||||
self.table_name = :vector_models
|
self.table_name = :vector_models
|
||||||
include PgSearchable
|
include PgSearchable
|
||||||
|
|||||||
Reference in New Issue
Block a user