The newly acquired territory of California would prove invaluable as the chance discovery of gold unleashes the largest migration in US history and ignites a vicious debate on slavery, culminating in the American Civil War.