{"action":"opened","issue":{"url":"https://api.github.com/repos/influitive/apartment/issues/241","labels_url":"https://api.github.com/repos/influitive/apartment/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/influitive/apartment/issues/241/comments","events_url":"https://api.github.com/repos/influitive/apartment/issues/241/events","html_url":"https://github.com/influitive/apartment/issues/241","id":90253866,"number":241,"title":"Migrating Substantial app to Apartments","user":{"login":"bramski","id":421781,"avatar_url":"https://avatars.githubusercontent.com/u/421781?v=3","gravatar_id":"","url":"https://api.github.com/users/bramski","html_url":"https://github.com/bramski","followers_url":"https://api.github.com/users/bramski/followers","following_url":"https://api.github.com/users/bramski/following{/other_user}","gists_url":"https://api.github.com/users/bramski/gists{/gist_id}","starred_url":"https://api.github.com/users/bramski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramski/subscriptions","organizations_url":"https://api.github.com/users/bramski/orgs","repos_url":"https://api.github.com/users/bramski/repos","events_url":"https://api.github.com/users/bramski/events{/privacy}","received_events_url":"https://api.github.com/users/bramski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-23T00:51:40Z","updated_at":"2015-06-23T00:51:40Z","closed_at":null,"body":"This is more of a question/advice than it is an actual issue.  We really like this gem, we think it's awesome.  We have a monolithic app which lends itself naturally to apartmentalization.  There are essentially two top level objects, a company, and a user.  The company is relationally attached to all the related objects as the top of the tree via active record relations (i.e. we can traverse down all items owned by a particular company), and we will want to apartmentalize our application for the company as we want data separation between companies that our application manages.\r\n\r\nGiven that apartment seems like a really attactive solution to us, I was hoping to get some answers to some questions:\r\n - Has anybody done this?  Essentially pried apart their app into apartments.  Would be really nice to know if there's any specific gotchas!\r\n - Is there any helpful gem or tools anybody has used to \"move house\"?  Essentially help the process of migrating from one apartment to many apartments.  We'd have to do it piecemail as a single migration to do this would likely lead to far too much downtime for our customers.\r\n - Who out there is using Apartment to do data separation in a larger application... am I understanding freshbooks uses it?  Any really noteable pitfalls as you scale with this solution?\r\n\r\nThanks for any help and advice you might give!\r\n\r\n-Bramski (payrollhero.com)"}}