Code
broken = Taxon.where.not(type_name: nil).to_a.select do |t| Taxon.find_by_name(t.type_name.name).nil? end
broken = Taxon.where.not(type_name: nil).to_a.select do |t|
Taxon.find_by_name(t.type_name.name).nil?
end
broken.each do |t| puts "* {tax #{t.id}} - #{t.type_name.name}" end; nil
broken.each do |t|
puts "* {tax #{t.id}} - #{t.type_name.name}"
end; nil