mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:01:11 +08:00
30990006a9
This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
22 lines
542 B
Ruby
22 lines
542 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TopicSearchData < ActiveRecord::Base
|
|
include HasSearchData
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: topic_search_data
|
|
#
|
|
# topic_id :integer not null, primary key
|
|
# raw_data :text
|
|
# locale :string not null
|
|
# search_data :tsvector
|
|
# version :integer default(0)
|
|
#
|
|
# Indexes
|
|
#
|
|
# idx_search_topic (search_data) USING gin
|
|
# index_topic_search_data_on_topic_id_and_version_and_locale (topic_id,version,locale)
|
|
#
|