My own implementation of the example of "Multi-tenancy Rails" Book.