20130429214630_destroy_inconsistent_abuse_complaints.rb 260 Bytes
class DestroyInconsistentAbuseComplaints < ActiveRecord::Migration
  def self.up
    AbuseComplaint.find_each do |ac|
      if ac.reported.nil?
        ac.destroy
      end
    end
  end

  def self.down
    raise ActiveRecord::IrreversibleMigration
  end
end