6 ms·
Also, if it is not much to ask, I know this is not the topic, but could you describe how you make this kind of separation? I have the same requirements for isol
by marcalc 15y ago
Also, if it is not much to ask, I know this is not the topic, but could you describe how you make this kind of separation? I have the same requirements for isolation and your experience in the matter would be valuable. :)
- sant0sk1 15y agoAwhile back, I blogged how to go about this. Some of the hacks will not be needed for Rails 3.2, but the concepts are the same: http://blog.jerodsanto.net/2011/07/building-multi-tenant-rails-apps-with-postgresql-schemas/ http://blog.jerodsanto.net/2011/07/building-multi-tenant-rai...
- marcalc 15y agoI remember reading your post some time ago, it really helped me creating a better view of this solution and is in fact our preferred method thanks to it. I still haven't implemented it for real and it would be great, if not much to ask you, if you could elaborate the impact of these changes in a post update? What do you think?
- burke 15y agoI haven't read sant0sk1's post -- it's probably the same idea -- but I gave an ultra-high-level overview in another comment: http://news.ycombinator.com/item?id=3374294 http://news.ycombinator.com/item?id=3374294 EDIT: This is my migration hack: https://gist.github.com/1f5e67b018d304dd1198 https://gist.github.com/1f5e67b018d304dd1198 . Most of the SchemaUtils/Schema stuff is just wrappers around setting the schema_search_path.