The best inference about the Gold Rush's impact on the city of San Francisco, based on the population data provided, is:
D. The mass migration of forty-niners transformed San Francisco into an economic hub practically overnight.
This is supported by the rapid increase in population from 850 in April 1848 to 25,000 by December 1849, indicating a significant influx of people due to the Gold Rush.