How the railroad impact the development of California?

How did the railroad impact the development of California?