wrong field name zip_id, renamed to zip_code_id

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