wrong field name zip_id, renamed to zip_code_id

It should be zip_code_id, because, by default rails try to determine a relationship's foreign key but it's model name. Thus belongs_to :zip_code expects a zip_code_id Integer field.