Revert "FIX: Delete related search data when record has been deleted."

This reverts commit ecc799ab56a0e64668d347c2426b8501fe17b82c.

This commit does not fix anything because we've always been deleting
records in `Searchable`.
This commit is contained in:
Guo Xiang Tan
2020-07-09 10:08:04 +08:00
parent 9eedc83e00
commit cbe1dd8ec7
5 changed files with 1 additions and 7 deletions

View File

@ -233,7 +233,7 @@ class Topic < ActiveRecord::Base
has_one :user_warning
has_one :first_post, -> { where post_number: 1 }, class_name: 'Post'
has_one :topic_search_data, dependent: :delete
has_one :topic_search_data
has_one :topic_embed, dependent: :destroy
belongs_to :image_upload, class_name: 'Upload'