2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-05-24 10:48:32 +08:00
|
|
|
class PostSearchData < ActiveRecord::Base
|
2017-08-15 23:46:57 +08:00
|
|
|
include HasSearchData
|
2013-05-24 10:48:32 +08:00
|
|
|
end
|
|
|
|
|
2013-05-24 10:35:14 +08:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: post_search_data
|
|
|
|
#
|
|
|
|
# post_id :integer not null, primary key
|
|
|
|
# search_data :tsvector
|
2014-07-03 15:29:44 +08:00
|
|
|
# raw_data :text
|
2019-01-12 03:29:56 +08:00
|
|
|
# locale :string
|
2017-08-16 22:38:11 +08:00
|
|
|
# version :integer default(0)
|
2013-05-24 10:35:14 +08:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
2019-04-09 13:27:22 +08:00
|
|
|
# idx_search_post (search_data) USING gin
|
|
|
|
# index_post_search_data_on_post_id_and_version_and_locale (post_id,version,locale)
|
2013-05-24 10:35:14 +08:00
|
|
|
#
|