diff --git a/script/maintenance/fix_cross_account_taggings.rb b/script/maintenance/fix_cross_account_taggings.rb index 5fe85a271..a4318e6c1 100644 --- a/script/maintenance/fix_cross_account_taggings.rb +++ b/script/maintenance/fix_cross_account_taggings.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require_relative "../config/environment" +require_relative "../../config/environment" cross_account_taggings = Tagging.joins(:tag).where("taggings.account_id != tags.account_id") @@ -9,7 +9,7 @@ puts "Found #{cross_account_taggings.count} cross-account taggings to fix" cross_account_taggings.find_each do |tagging| correct_tag = tagging.account.tags.find_or_create_by!(title: tagging.tag.title) tagging.update!(tag: correct_tag) - puts "Fixed tagging #{tagging.id}: reassigned to tag #{correct_tag.id} (#{correct_tag.title})" + puts "Fixed tagging #{tagging.id}: reassigned to tag #{correct_tag.id}" end puts "Done!"