fix: reduce number of n+1 queries

This commit is contained in:
Nelson Jovel 2023-12-21 13:34:16 -08:00
parent ebf4ca4166
commit 60927e3271
2 changed files with 9 additions and 4 deletions

View file

@ -8,4 +8,5 @@ class Category < ActiveRecord::Base
has_many :subcategories
has_many :measures, through: :subcategories
has_many :admin_data_items, through: :measures
end