Skip to content

Commit

Permalink
migrate_ascribed outputs a log
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Feb 29, 2024
1 parent 540d2c4 commit f768d2b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/tasks/elements.rake
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ namespace :elements do
to_re = RegisteredElement.find_by(institution: institution,
name: args[:to_registered_element_name])
unless to_re
puts "No such \"to\" -element." and return
puts "No such \"to\" element." and return
end
from_re.migrate_ascribed_elements(to_registered_element: to_re,
reindex_items: false)
puts "Done. Note that any affected items will have to be reindexed manually."
reindex_items: false,
output_log: true)
puts "Done. Above are the IDs of all affected AscribedElements. "\
"Note that any affected items will have to be reindexed manually."
end

end
Expand Down

0 comments on commit f768d2b

Please sign in to comment.