Giter Club home page Giter Club logo

Comments (2)

bradrobertson avatar bradrobertson commented on May 27, 2024

Ya I've been wanting to remove tenanted tables from public and vice versa
for a while but hadn't really thought about the best way to do it. I'd be
interested in seeing your implementation. Associations should still work
fine though given that public is hard coded onto the db's name. But I like
the idea of maintaining a clean public and always keeping it in the search
path. It certainly wouldn't work to add public to the persistent schemas
given the current implementation.

I'm not sure this would even need to be a config option, I'd just like it
to be standard. Happy to review a pull request if you're interested

brad

(on my phone)

In our in-house multi-tenant system, we overwrote several of the rails db
rake tasks so that we don't have duplicate tables between public and tenant
postgres schemas. We dump the SQL schemas into two files (one for public,
one for tenant). We also usually include public in the postgres schema
search path. This allows for active record associations to just work even
between the public & tenant postgres schemas.

It sounds like getting Apartment to work this way would require more than
just adding public to the persistent_schemas. Also, some of the other
Apartment issues sound related. Is this a configuration option that would
be valuable to add?


Reply to this email directly or view it on
GitHubhttps://github.com//issues/46
.

from apartment.

bradrobertson avatar bradrobertson commented on May 27, 2024

I'm going to close this for now. It's something we're definitely aware of, but not currently a bug

from apartment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.