Do my parents need to get divorced to qualify for Medicaid?

A fellow caregiver asked...

My dad suffered a stroke that will require long-term rehabilitation in a nursing home. He's going to apply for Medicaid to help with the costs, but he may be ineligible because my parents still have their life savings in the bank. A friend told them that if they were to divorce, he might be able to qualify for Medicaid. Should my parents think about getting a divorce so my dad can qualify for Medicaid -- or is this some kind of urban legend?