Ants are smart, and if you have food lying around, chances are, they’ll find it and invite their buddies over for a feast. If your dog or cat leaves food in the bowl, deter ants with a little petroleum jelly.
Source: LifeHacker – Keep Ants Away From Pet Food Bowls With Petroleum Jelly