The Baltimore Ravens and franchised running back Ray Rice have agreed to terms on a five-year, $40 million contract, only minutes before Monday's deadline, league sources told ESPN NFL Insider Adam Schefter.