Can I have thread safe per-request configuration for database connection and table_name in ActiveRecord (or Mongoid)?
问题 Also known as the <<"User has many Databases" question.>> The environment My app is modeled like so: user has_many databases database has_many tables table has_many rows row habtm(+value) columns you get the idea! So instead of modelling a database inside a database, I would like to have: a sqlite3 database that holds the users and many sqlite databases for each user Each user will LCRUD his tables in his databases (similar to phpmyadmin) The problem I would like to have thread safe per