The first question for determination is the ruling upon the demurrers. Under the allegations of the petition
*415
it clearly appears that no cause of action was stated against the city. It was not alleged that the city was doing, or would do, any further act with reference to the passage of an ordinance or the granting of a building permit in the zoned area. The city had already acted, after advertisement, notice, and public hearings. There were no allegations in the petition to show that the city had any interest in the construction of the drugstore building. Courts can not restrain that which has already been done; and it appearing from all of the allegations of the petition that the acts of the city complained of were fully consummated, there were no grounds for injunction against the city, and the court erred in overruling the general demurrers of the city. Code, § 55-110;
Hapeville-Block Inc.
v.
Walker,
204
Ga.
462 (
The plaintiffs allege that the ordinance purporting to amend zoning area “J” is void, and that, consequently, the building permit is void. Treating this allegation as true, the petition does not allege any act or thing done by the defendant Whipkey pursuant to the ordinance or building permit, which would result in injury or damage to the plaintiffs. It is not alleged that the defendant is constructing, or has made any move to construct, a drugstore on such premises. A general demurrer to a petition admits as true all well-pleaded allegations of fact; but on general demurrer the petition is measured by its allegations and not by facts which are known to the court, or which may subsequently be developed, either by an admission in the defendant’s answer, or by evidence presented upon a trial. Measured by its allegations, the petition failed to show any present act by the defendant Whipkey which would authorize the grant of an injunction, and it was error to overrule the general demurrer to the petition.
Wallace
v.
Atlanta,
200
Ga.
749 (
The foregoing rulings would dispose of the writ of error. The plaintiffs, however, would have the right to amend their petition at any time before the judgment of this court is made the judgment of the trial court. From the allegations contained in the answer of the defendant Whipkey, and from the evidence produced on the hearing, it appears that the petition could be amended to allege a cause of action, and the case brought to this court a second time. Evidence having been introduced, and the *416 merits of the issue being thus before the court, we deem it advisable to rule upon the second assignment of error, the grant of an interlocutory injunction. If, under the evidence, the plaintiffs are not entitled to injunctive relief, a final disposition might be made of the cause.
The defendant Whipkey’s answer and the evidence introduced both raise the issue as to whether or not the plaintiffs would be estopped from seeking to enjoin further acts by Whipkey. The defense of estoppel is not specifically designated in the answer of Whipkey. As a general rule estoppel, to be relied upon, must be pleaded.
DeVore
v.
Baxter,
155
Ga.
109 (
*417
In
Dulin
v.
Caldwell & Co.,
28
Ga.
117, it was held: “A party is not entitled to an injunction who shows that he has been negligent and careless in guarding his rights, and that if he has been subjected to loss it was because he had not attended to his interests in proper time.” In
Wood
v.
Macon & Brunswick Railroad Co.,
68
Ga.
541 (6), it was ruled that the writ of injunction is designed to prevent, and not to undo, and if the application for injunction is delayed until progress or construction has been made at heavy cost, the application should not be granted. In
Southern Marble Co.
v.
Darnell,
94
Ga.
232 (4) (
Under the evidence in the present case, the defendant Whipkey will be substantially injured and damaged if the plaintiffs are permitted to prevail, after allowing the work to proceed to the point indicated by this record.
Counsel for the plaintiffs cite and rely upon
Barton
v.
Hardin,
204
Ga.
108 (
It is further contended by the plaintiffs that, under the ruling of
Snow
v.
Johnston,
197
Ga.
146 (
Under all of the facts shown by the record in the present case, the plaintiffs have not given effect to the equitable rights of the defendant, in that, through their neglect and delay, it is impossible to grant the relief sought without material damage to the defendant, which might have been avoided had the plaintiffs moved at the proper time.
Judgment reversed.
