From 6cedf3b53063f2ad863aead38cd2361be78ca3f1 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 21 Oct 2020 15:13:30 +0800 Subject: [PATCH] ADD some index to projects table --- .../20201021070524_add_some_index_to_projects.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20201021070524_add_some_index_to_projects.rb diff --git a/db/migrate/20201021070524_add_some_index_to_projects.rb b/db/migrate/20201021070524_add_some_index_to_projects.rb new file mode 100644 index 000000000..47a3c2fda --- /dev/null +++ b/db/migrate/20201021070524_add_some_index_to_projects.rb @@ -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