You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing issues when trying to do get the associated children records for a given parent:
parent=Parent.find(1)
One record in the associated_children collection is soft-deleted, but the others are not.
parent.children.count=>0# returns 0 even though I can see 32 non-deleted associated_children records in the DB and Rails consoleparent.children.with_deleted.count=>33
So there should be 32 records returned for associated_children, but instead I see:
The kicker is this is only happening on 1 table of my database, and only on production. When I copy the production database locally the exact same queries as above work just fine for the same models that are failing on production.
The text was updated successfully, but these errors were encountered:
Rails 5.1.6, Ruby 2.4.3, paranoia 2.4.1. MySQL 5.7
I have the following model setup:
I'm seeing issues when trying to do get the associated children records for a given parent:
One record in the
associated_children
collection is soft-deleted, but the others are not.So there should be 32 records returned for
associated_children
, but instead I see:The kicker is this is only happening on 1 table of my database, and only on production. When I copy the production database locally the exact same queries as above work just fine for the same models that are failing on production.
The text was updated successfully, but these errors were encountered: