If you want a more permanent solution, try concrete. My coop and run is a converted wooden playhouse and fort. I dug a narrow trench around the outside of my coop and run, flush up against the baseboard and down about 8 inches. I filled it with dry concrete mix, ran a hose in it until I could mix it easily, and hand mixed it right in the trench. Doing sections keeps them from breaking as easily as they settle. I did opposite sides on consecutive days, but you could do them a half day apart and get the same effect.
I now have a concrete barrier all the way around my coop and run - which has been very effective for keeping my digging dog out of the organic squeaky toy supply.
This year, I banked the top with some good soil and mulch, so now my birds can access kale and marigolds through the wire. So far, it's a win/win for everyone but Crazy Dog. She's reduced to watching Squeaky Toy TV!
View attachment 2314245
The trench runs all the way around the base on all four sides. It was VERY easy to create!