admin管理员组

文章数量:1401606

I am having issue with activerecord-multi-tenant gem while upgrading rails version from 7.1 to 7.2. In my project, we used has_and_belongs_to_many associations. After upgrading rails 7.2, rails server is not running. It shows, has_and_belongs_to_many_with_tenant': undefined method through_reflection' for nil (NoMethodError)

    middle_reflection = _reflections[name.to_s].through_reflection

Then, I found this gem supports up to rails 7.1 according to the latest release note. .md#240------2023-09-22

If anyone confirm that, it does not support rails 7.2, it would be great. Is there any alternative way, to solve the problem?

Update: Now, I solved the problem using latest commit of this pr as these changes are not included in the latest release.

New findings: Rspec is not running. It raises ActiveRecord::RecordInvalid: Validation failed: Tenant must exist (ActiveRecord::RecordInvalid)

本文标签: activerecordmultitenant gem does not support rails 72Stack Overflow