This code, from and after its effective date, shall contain all of the provisions of a general nature of the city pertaining to the subjects herein enumerated and embraced. All prior ordinances pertaining to the subjects treated by this code shall be deemed repealed from and after the effective date of this code; provided, nothing contained herein shall affect any rights, actions, or causes of action which accrued to the city prior to the effective date of this code.