This is not a request about how to accomplish connections to multiple
But, I am looking for advise on the best way to start a new project. I
will have multiple clients, each will want their data protected from
the other clients. I would probably have up to about 10 tables per
The question is, in order to keep the data secure and separate, yet
have a maintainable rails app, what is the best approach to designing
the database and application workflow:
Create One rails app that connects to One database and creates a
new set of 10 tables per client and then put in the logic to only
allow changes and views on those 10 tables?
Create One rails app that connects to Multiple databases, one for
Create Multiple rails apps, on for each client, that each connect
to one database containing the 10 tables for the client.
I obviously need a solution that I can maintain. Ideally would it be a
big pain to start with the one db, multiple sets of tables idea and
then migrate to one of the other options if my client list grows?