Integrates multi-tenancy into Rail application with MySql db