Ryan Bigg's sample app per "Multitenancy with Rails", Leanpub, 2013-10-27.