ADD some index to projects table
This commit is contained in:
parent
e0826da950
commit
6cedf3b530
|
@ -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
|
Loading…
Reference in New Issue