Sha256: 319e7872dad9404c44f197ebdf54609f05aea7c8f0df8afdd686d32b7149c847
Contents?: true
Size: 326 Bytes
Versions: 4
Compression:
Stored size: 326 Bytes
Contents
class AddSearchableContent < ActiveRecord::Migration[7.0] def change add_column :pg_search_documents, :searchable_content, :virtual, type: :tsvector, as: "to_tsvector('#{Alchemy::PgSearch.config.fetch(:dictionary, "simple")}', coalesce(content, ''))", stored: true, if_not_exists: true end end
Version data entries
4 entries across 4 versions & 1 rubygems