Following the book by Ryan Bigg on "multitenancy with Rails"