initial rails upgrade