For the promotion of the public peace, order, safety, or general welfare, such municipal corporations may, within residential districts established pursuant to this article, further regulate as to the housing or residence therein of the different classes of inhabitants, but such regulations are not hereby authorized as will discriminate in favor of or against any class of inhabitants.
Ala. Code § 11-52-75 (1975)