-
Notifications
You must be signed in to change notification settings - Fork 196
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
Problem with joins #202
Comments
Hi @dawidof can you please provide a way to reproduce this problem? At first glance, the SQL seems fine, but without the code it's hard to tell. |
Thanks @mvz, yeah you are right, it seems like error in my code. But I've got another problem with using |
@dawidof I'll also need some code to reproduce this. I can't tell from your screen shot what you think is wrong. |
@mvz I've not tested, but I think this code would be enough class Provider < ApplicationRecord
has_many :licences, dependent: :destroy
end
class Licence < ApplicationRecord
acts_as_paranoid
belongs_to :provider
end |
Can you please also say
|
E.g. I'm trying to get providers with active and not dependent on deleted_at column licences. on I am expecting to get collection with providers, starting AR query request with Provider model |
If you start from There's an open issue about the ability to specify that joined relations should include deleted records here: #110. |
Does not create proper sql when paranoid set on joined table
The text was updated successfully, but these errors were encountered: