ADD some index to projects table

This commit is contained in:
Jasder 2020-10-21 15:13:30 +08:00
parent e0826da950
commit 6cedf3b530
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class AddSomeIndexToProjects < ActiveRecord::Migration[5.2]
def change
add_index :projects, :project_category_id
add_index :projects, :project_language_id
add_index :projects, :is_public
add_index :projects, :status
add_index :projects, :forked_from_project_id
add_index :projects, :recommend
add_index :projects, :platform
end
end