Giter Club home page Giter Club logo

Comments (3)

bradrobertson avatar bradrobertson commented on May 26, 2024

If you don't migrate public, your rails schema.rb file will not be
generated properly, which is why we have the dependency.

You can set a default schema_search_path if you have a different schema you
want as your default, I think that should then be the one migrated
instead of public by the db:migrate task.

from apartment.

sdbondi avatar sdbondi commented on May 26, 2024

Thanks, that can probably work for me.

I'll experiment to see if I can get schema.rb to generate from the correct schema and reply back.

from apartment.

sdbondi avatar sdbondi commented on May 26, 2024

I think our situation is a little too specific. I think I can get apartment to work, but it might be a cleaner solution for us to implement custom schema switching. In the mean time though I have made a few small commits to my fork if you are interested, I don't feel confident in a pull request.

Basic changelog:

  • Changed the Subdomain elevator's private methods to protected so that I can use subdomain in custom elevator middleware.
  • Added an exclude_request_regex option so that schema switching can be bypassed for matching requests (e.g. assets) - feel like there a better way to to this (?)
  • Make sure default_schema is always included in migration
  • Added apartment:schema:dump

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.