-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rails 5.0] Unscope for the join #30534
Comments
Yeah, backported in 9d364cc. |
This still doesn't work if a where clause is added (afaic only count works).
no tenant id, unscoped is working here.
All those extra conditions show that unscoped is not being honored here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have 2 models:
With simple using
has_many
it works as expected:But with
join
it doesn't work.That because in sql still leave the
AND "developers"."deleted_at" IS NULL
.Rails 5.0.6.rc1 Ruby 2.2.3
In Rails 5.1.4.rc1 (latest
5-1-stable
branch, not release) it works as expected.I think we need to backport fix from 5.1 rails to 5.0 too.
The text was updated successfully, but these errors were encountered: