perf: add pghero and implement pghero suggestions. Remove unneeded indexes

This commit is contained in:
Nelson Jovel 2023-12-27 10:54:32 -08:00
parent 6558ed491a
commit 115b00145d
5 changed files with 31 additions and 10 deletions

View file

@ -2,14 +2,16 @@ Rails.application.routes.draw do
resources :districts do
resources :schools, only: %i[index show] do
resources :overview, only: [:index]
resources :categories, only: [:show], path: 'browse'
resources :categories, only: [:show], path: "browse"
resources :analyze, only: [:index]
end
end
get :reports, to: 'reports#index'
get 'reports/gps', to: 'gps#index'
get :reports, to: "reports#index"
get "reports/gps", to: "gps#index"
get '/welcome', to: 'home#index'
root to: 'home#index'
get "/welcome", to: "home#index"
root to: "home#index"
# mount PgHero::Engine, at: "pghero" # remove in development env to see suggestions at localhost:3000/pghero
end