向同一标签添加同义词时卡住

@techAPJ 发给我的命令对我无效,不过我执行了以下链接中提供的(略有不同的)命令:How can I delete a tag in development database (on local)? - #4 by simon

我尝试删除标签 “testing”(它有一个同义标签 “testing”),得到了以下结果:

[1] pry(main)> t = Tag.find_by_name('testing')
=> #<Tag:0x000055a268f6f990
 id: 35,
 name: "testing",
 topic_count: 0,
 created_at: Wed, 11 Nov 2020 04:38:06 UTC +00:00,
 updated_at: Thu, 19 Nov 2020 03:44:35 UTC +00:00,
 pm_topic_count: 0,
 target_tag_id: 35>
[2] pry(main)> t.destroy!
SystemStackError: stack level too deep
from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.3/lib/active_record/reflection.rb:120:in `_reflect_on_association'
[3] pry(main)>