Strange approvals list

Are you familiar with a rails console? You can clear them out with this command:

ReviewableUser.pending.each { |ru| ru.destroy if ru.target.blank? }

In plain english: if there are pending users where the user record is missing, delete them.

6 Likes