Update gems before upgrade. Fixed devise issue.