2017-08-15 23:46:57 +08:00
|
|
|
class TopicSearchData < ActiveRecord::Base
|
|
|
|
include HasSearchData
|
|
|
|
end
|
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: topic_search_data
|
|
|
|
#
|
2017-08-16 22:38:11 +08:00
|
|
|
# topic_id :integer not null, primary key
|
|
|
|
# raw_data :text
|
2019-01-12 03:29:56 +08:00
|
|
|
# locale :string not null
|
2017-08-16 22:38:11 +08:00
|
|
|
# search_data :tsvector
|
|
|
|
# version :integer default(0)
|
2017-08-15 23:46:57 +08:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
2019-04-09 13:27:22 +08:00
|
|
|
# idx_search_topic (search_data) USING gin
|
|
|
|
# index_topic_search_data_on_topic_id_and_version_and_locale (topic_id,version,locale)
|
2017-08-15 23:46:57 +08:00
|
|
|
#
|