Ruby and Rails upgrade