mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
ADD some index to projects table
This commit is contained in:
11
db/migrate/20201021070524_add_some_index_to_projects.rb
Normal file
11
db/migrate/20201021070524_add_some_index_to_projects.rb
Normal 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
|
||||
Reference in New Issue
Block a user