You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT_SUMMARY="Set original_combination flag for obsolete combinations with same name as its protonym, see %github848"jonkerz=User.find(60)Activity.execute_script_activityjonkerz,EDIT_SUMMARY# For PaperTraildefantcat_bot@antcat_bot ||= User.find(62)endPaperTrail.request.whodunnit=antcat_bot.id# NonOriginalCombinationsWithSameNameAsItsProtonymsoon_original_combinations=Taxon.joins(:name,protonym: :name).obsolete_combinations.where.not(original_combination: true).where("names.name = names_protonyms.name")soon_original_combinations.eachdo |taxon|
taxon.update!(original_combination: true)taxon.create_activity:update,antcat_bot,edit_summary: EDIT_SUMMARYend
Db script: http://antcat.org/database_scripts/non_original_combinations_with_same_name_as_its_protonym
The text was updated successfully, but these errors were encountered: