example app from book multi-tenancy rails by ryan bigg