fix: projects load by project language slowly

This commit is contained in:
2021-06-21 17:05:51 +08:00
parent ea82a52b7b
commit 0af08bc967
4 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
class AddProjectLanguageIndexToProjects < ActiveRecord::Migration[5.2]
def change
add_index :projects, :project_category_id
add_index :projects, :project_language_id
add_index :projects, :license_id
end
end