mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改迁移的问题
This commit is contained in:
@@ -8,16 +8,16 @@ module Searchable::Dependents::User
|
||||
private
|
||||
|
||||
def check_searchable_dependents
|
||||
if firstname_previously_changed? || lastname_previously_changed? || user_extension&.school_id_previously_changed?
|
||||
# reindex shixun
|
||||
created_shixuns.each(&:reindex)
|
||||
|
||||
# reindex course
|
||||
manage_courses.each(&:reindex)
|
||||
|
||||
# reindex subject
|
||||
created_subjects.each(&:reindex)
|
||||
subjects.each(&:reindex)
|
||||
end
|
||||
# if firstname_previously_changed? || lastname_previously_changed? || user_extension&.school_id_previously_changed?
|
||||
# # reindex shixun
|
||||
# created_shixuns.each(&:reindex)
|
||||
#
|
||||
# # reindex course
|
||||
# manage_courses.each(&:reindex)
|
||||
#
|
||||
# # reindex subject
|
||||
# created_subjects.each(&:reindex)
|
||||
# subjects.each(&:reindex)
|
||||
# end
|
||||
end
|
||||
end
|
||||
@@ -3,7 +3,7 @@ class User < ApplicationRecord
|
||||
include Likeable
|
||||
include BaseModel
|
||||
include ProjectOperable
|
||||
include Searchable::Dependents::User
|
||||
# include Searchable::Dependents::User
|
||||
|
||||
# Account statuses
|
||||
STATUS_ANONYMOUS = 0
|
||||
|
||||
Reference in New Issue
Block a user