ADD some index

This commit is contained in:
Jasder 2020-10-21 16:46:23 +08:00
parent 6cedf3b530
commit f6937d96f4
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
class AddUserIdIndexToProjects < ActiveRecord::Migration[5.2]
def change
add_index :projects, :user_id
add_index :projects, :name
end
end