Which to use depends a little on the context. In the general case, as this is, then 'eat food that was' is better.
You would use '...eat the food that...' if there was a choice - i.e. that there were two different sources, and you had a choice of one or the other. That would only normally apply in a specific case, which this is not.