# For records which have no associated charge, refund, nonprofit, supporter, donation or a gross_amount
# The record is basically useless
defself.find_records_which_are_really_bad
Payment.includes(:charges).includes(:refund).where('payments.nonprofit_id IS NULL AND payments.supporter_id IS NULL AND payments.donation_id IS NULL AND payments.gross_amount IS NULL AND charges.id IS NULL AND refunds.id IS NULL')