You can put meat and dairy in a worm bin.
I reviewed a book a few months ago, 62 Things To Make With A Dead Computer
that teaches you how to make a worm bin from an old scanner. I'm planning to make one next time I see a scanner at a garage sale.
Also, Multnomah County vector control says improperly covered compost and inappropriate items in compost are a major contributor to the rat problem.