Rails and gem upgrade