The most fitting inference based on the information provided would be:
The mass migration of forty-niners transformed San Francisco into an economic hub practically overnight.
This response suggests that the influx of people during the Gold Rush had a significant and immediate impact on the city's growth and economic status, which aligns with historical accounts of the transformative effects of the Gold Rush on San Francisco.