Long before the industrial revolution. The ox-drawn plow was invented about 6000 years ago in Mesopotamia or India (my memory's poor, sorry) and it put a lot of workers with hoes out of work, while also growing prosperity and the number of people who gained work thanks to that increased prosperity and population growth it supported. It has always been this way and always will be.