# Lista de aprobaciones extraña

**URL:** <https://meta.discourse.org/t/strange-approvals-list/113305>\
**Category:** Bug\
**Created:** [3 Abril, 2019 06:50 UTC](https://meta.discourse.org/t/strange-approvals-list/113305 "2019-04-03T06:50:30Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [5 Abril, 2019 03:26 UTC](https://meta.discourse.org/t/strange-approvals-list/113305/9 "2019-04-05T03:26:53Z")

</div>

> [@eviltrout](#):
>
> `ReviewableUser.pending.each { |ru| ru.destroy if ru.target.blank? }`

OK, two of them failed to delete.

```plaintext
[#<ReviewableUser:0x0000559e07933e60
  id: 1355,
  type: "ReviewableUser",
  status: 0,
  created_by_id: -1,
  reviewable_by_moderator: true,
  reviewable_by_group_id: nil,
  claimed_by_id: nil,
  category_id: nil,
  topic_id: nil,
  score: 6.0,
  potential_spam: true,
  target_id: 1964,
  target_type: "User",
  target_created_by_id: nil,
  payload: {"name"=>nil, "email"=>nil, "username"=>nil},
  version: 0,
  latest_score: Wed, 03 Apr 2019 12:39:14 UTC +00:00,
  created_at: Wed, 03 Apr 2019 12:39:14 UTC +00:00,
  updated_at: Wed, 03 Apr 2019 12:39:14 UTC +00:00>,
 #<ReviewableUser:0x0000559e07933208
  id: 1356,
  type: "ReviewableUser",
  status: 0,
  created_by_id: -1,
  reviewable_by_moderator: true,
  reviewable_by_group_id: nil,
  claimed_by_id: nil,
  category_id: nil,
  topic_id: nil,
  score: 6.0,
  potential_spam: true,
  target_id: 1965,
  target_type: "User",
  target_created_by_id: nil,
  payload: {"name"=>nil, "email"=>nil, "username"=>nil},
  version: 0,
  latest_score: Wed, 03 Apr 2019 17:03:26 UTC +00:00,
  created_at: Wed, 03 Apr 2019 17:03:26 UTC +00:00,
  updated_at: Wed, 03 Apr 2019 17:03:26 UTC +00:00>]

```

`ru.target.blank?` is false?

---

_[View the full topic](https://meta.discourse.org/t/strange-approvals-list/113305)._
