An ex-colleague left for a competitor and my company tried to enforce a 12 month rule in joining a competitor. He was on gardening leave for 1 month then joined the other company straight away. He told the company he would take them to court claiming "restraint of trade". He got away with it.