GithubHelp home page GithubHelp logo

Comments (4)

lfittl avatar lfittl commented on July 22, 2024

@DaveWhitmer Hmm - that issue should be fixed though, so this shouldn't be necessary anymore.

Which Citus version are you testing against?

from activerecord-multi-tenant.

DaveWhitmer avatar DaveWhitmer commented on July 22, 2024

Should be 7.5, but have not even gotten to that stage. Simply installed the gem in preparation for the move to Citus and my test suite started failing as described above. Remove the gem and the test suite passes. Dug into it and found that it was the fixture creation with the referential integrity as described above. Forked the gem added that monkey patch to it and everything passed.

from activerecord-multi-tenant.

lfittl avatar lfittl commented on July 22, 2024

Ah, this is caused by https://github.com/citusdata/activerecord-multi-tenant/blob/master/lib/activerecord-multi-tenant/referential_integrity.rb which wasn't removed yet even though this was fixed in Citus.

Given that this has been supported since Citus 6.2 I'd be inclined to simply remove that monkey patch.

Since you already forked the gem, could you try just removing that monkey patch from it, and see if that also makes things pass? (to confirm the patch is the issue)

from activerecord-multi-tenant.

DaveWhitmer avatar DaveWhitmer commented on July 22, 2024

Yes. Commenting out the entirety of the referential_integrity.rb file causes my local test environment to pass as I would expect.

from activerecord-multi-tenant.

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.