updated db_scrub so pending works for both rails 3.2 and rails 4