Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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. :)


Awhile 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-rai...


I 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?


I 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

EDIT: This is my migration hack: https://gist.github.com/1f5e67b018d304dd1198 . Most of the SchemaUtils/Schema stuff is just wrappers around setting the schema_search_path.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: