Is that what was done?
https://www.history.com/this-day-in-history/November-4/prop-8-passed-california-gay-marriage
With over 13 million votes cast, California voters approved Proposition 8 on November 4, 2008, amending the state’s constitution to ban same-sex marriage.
Only months earlier, in May 2008, the California Supreme Court had deemed the state’s ban on same-sex marriage unconstitutional, making California the second state in the country to legalize gay marriage. Thus, Proposition 8 reversed the state court’s ruling.
https://www.cnn.com/2012/02/07/justice/california-proposition-8/index.html
A federal appeals court ruled against California’s voter-approved ban on same-sex marriage Tuesday, arguing the ban unconstitutionally singles out gays and lesbians for discrimination.
In a split decision, a three-judge panel of the 9th U.S. Circuit Court of Appeals found the state’s Proposition 8 “works a meaningful harm to gays and lesbians” by denying their right to civil marriage in violation of the 14th Amendment.
“Very soon, Proposition 8 will be gone forever,” said Kristin Perry, one of two women who challenged the ban in federal courts along with a male same-sex couple. “Today marks the culmination of what has been a transformational year.”