The line: create(:poll_voter, booth_assignment: booth_assignment_final_recounted) Creates a new poll for the poll voter. Not only it wastes time by creating new database records, but it doesn't make sense to have a poll voter for a poll which isn't the same as its booth assignment's poll.