Cal. Civ. Code § 1669
Every contract in restraint of the marriage of any person, other than a minor, is void.