Upgrade rails and json