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
版权声明:本文标题:activerecord-multi-tenant gem does not support rails 7.2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744295310a2599313.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论