Browse Source

ADD some index to projects table

tags/v1.0.0
Jasder 5 years ago
parent
commit
6cedf3b530
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      db/migrate/20201021070524_add_some_index_to_projects.rb

+ 11
- 0
db/migrate/20201021070524_add_some_index_to_projects.rb 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

Loading…
Cancel
Save