From ca3b5f4284f09bdda1fb1760c666ae09111ae668 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 21 Oct 2020 11:43:11 +0800 Subject: [PATCH] ADD index for project_type column in projects table --- db/migrate/20201020083709_add_index_to_projects.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20201020083709_add_index_to_projects.rb diff --git a/db/migrate/20201020083709_add_index_to_projects.rb b/db/migrate/20201020083709_add_index_to_projects.rb new file mode 100644 index 000000000..b968a17c1 --- /dev/null +++ b/db/migrate/20201020083709_add_index_to_projects.rb @@ -0,0 +1,5 @@ +class AddIndexToProjects < ActiveRecord::Migration[5.2] + def change + add_index :projects, :identifier, name: 'index_projects_on_identifier' + end +end