mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
fix: reduce number of n+1 queries
This commit is contained in:
parent
ebf4ca4166
commit
60927e3271
2 changed files with 9 additions and 4 deletions
|
|
@ -8,4 +8,5 @@ class Category < ActiveRecord::Base
|
|||
|
||||
has_many :subcategories
|
||||
has_many :measures, through: :subcategories
|
||||
has_many :admin_data_items, through: :measures
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue