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

This reverts commit ecc799ab56.

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:35 +08:00
parent 9eedc83e00
commit cbe1dd8ec7
5 changed files with 1 additions and 7 deletions
-2
View File
@@ -39,8 +39,6 @@ class Tag < ActiveRecord::Base
belongs_to :target_tag, class_name: "Tag", optional: true
has_many :synonyms, class_name: "Tag", foreign_key: "target_tag_id", dependent: :destroy
has_one :tag_search_data, dependent: :delete
after_save :index_search
after_save :update_synonym_associations