Was marijuana legalized yet when you wrote "in california" ?
no. the song was written in 2011. california was known for marijuana being legal medically, when in most other places it was not at all. that is really the context for the basis of the song. it should be noted that 'alabama' for the second verse was chosen deliberately to be the most incorrect. the other states were chosen purely for aesthetic reasons.