mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix orphan fix
This commit is contained in:
parent
5c61a3d5ea
commit
118b09febd
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user