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
the category_hierarchies-table is not populated correctly. Thus queries like category.ancestors.pluck(&:name) are always empty even though category.parent_id is right.
The text was updated successfully, but these errors were encountered:
Not to be flippant, but don't do that.
If you run .update_all, you're changing an unknown set of rows with no
changed-entry callback. I don't see how that could ever be supported.
When I run this code:
Category.where(name: child_name).update_all parent_id: parent.id
the
category_hierarchies
-table is not populated correctly. Thus queries likecategory.ancestors.pluck(&:name)
are always empty even thoughcategory.parent_id
is right.The text was updated successfully, but these errors were encountered: