I have a rails application requirement which I have User table in main database and need to create UserJobs related records(sub tables) with in a sub database , ie I need to create a different database for each user and store their Jobs in a different database. How can I do this manually from rails application.
Apartment
gem could come in handy. It lets you create multiple schemas
in database
with the ability of supporting multi-tenancy
.
如您的查询中所述,Apartment Gem将为您做所有您想做的事情。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.