All Versions
24
Latest Version
Avg Release Cycle
64 days
Latest Release
324 days ago

Changelog History
Page 1

  • v1.1.1 Changes

    January 15, 2021
    • โž• Add support for Rails 6.1 #108
    • ๐Ÿ›  Fix statement cache for has_many through relations #103
  • v1.0.4 Changes

    October 30, 2019
    • ๐Ÿ›  Fix bug introduced in 1.0.3 for delete when table is reference or not distributed
  • v1.0.3 Changes

    October 28, 2019
    • Ensure that when using object.delete, we set the tenant
  • v1.0.2 Changes

    September 20, 2019
    • ๐Ÿš… Compatibility with rails 6
    • โœ‚ Remove support for rails 4.0 and 4.1
    • ๐Ÿ›  Fix bug when multiple databases are used
  • v1.0.1 Changes

    August 27, 2019
    • Ensure current tenant is present before adding tenant id filter in DatabaseStatements
  • v1.0.0 Changes

    July 05, 2019
    • ๐Ÿ›  Fix RETURNING id for distributed tables with no primary key
    • Include fix for partial select described in issue #34.
      • When doing a partial select without the tenant like Project.select(:name).find(project.id) it would raise ActiveModel::MissingAttributeError (missing attribute: tenant_id)
  • v0.11.0 Changes

    June 12, 2019
    • ๐Ÿ›  Fix queries with joins by including the tenant column when current tenant isn't set
      • A common use case is having a filter on the tenant, but MultiTenant.with isn't used like Project.where(account_id: 1).eager_load(:categories). This version fixes the ORM call to include in the join: "project_categories"."account_id" = "projects"."account_id"
  • v0.10.0 Changes

    May 31, 2019
    • โž• Add MultiTenant.without to remove already set tenant context in a block #45 Jackson Miller
    • ๐Ÿ›  Fix uninitialized constant X::ActiveRecord::VERSION #42 vollnhals
    • ๐Ÿ›  Fix find and find_by caching issues
      • This builds on work by multiple contributors, and fixes issues where the tenant_id would be cached across different tenant contexts for find and find_by methods. This issue was only present with prepared statements turned on
      • Note that the mechanism to solve this is slightly different for Rails 4 and 5:
      • Rails 4: Disable any caching for find and find_by methods
      • Rails 5: Explicitly add the current_tenant_id into the cache key
      • This also ensures that we test both prepared statements on and off on Travis
    • โž• Added method to ensure that the current tenant is loaded #49 Stephen Bussey
      • This is ideal for fully utilizing the ActiveRecord extensions, as they only take effect when the current tenant is not an ID
    • โšก๏ธ Update loofah and rack to fix security warnings
      • Note that loofah is not a direct dependency of the libary, so this only applies when running the test suite
    • โœ‚ Remove monkey patch that previously disabled referential integrity (DISABLE/ENABLE TRIGGER ALL) #53 Rรฉmi Piotaix
  • v0.9.0 Changes

    June 22, 2018