blogaquarium.com
Breeding Fish FAQ - part II
The most common way to keep eggs from being eaten is to use a separate breeding tank. There the parents can spawn or give birth to their young, and be removed once they are done