fix orphan fix

This commit is contained in:
drusepth 2021-10-07 14:50:11 -07:00
parent 5c61a3d5ea
commit 118b09febd

View File

@ -4,7 +4,7 @@ namespace :one_off do
PageTag.find_each do |page_tag|
referenced_page = page_tag.page
if page.nil?
if referenced_page.nil?
page_tag.destroy
end
end