Yikes, that looks like a rat attack. I'm so sorry, I've never had this happen to my beloved quail, but I've seen chickens who have been attacked by rats and the rats burrow under the ground to where their cage is and eat their feet from under the ground. I hope your quail can recover soon, best...