What does ‘Bought the farm’ mean?

Moved to the countryside.