Browse Source

ADD some index

tags/v1.0.0
Jasder 5 years ago
parent
commit
f6937d96f4
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      db/migrate/20201021080638_add_user_id_index_to_projects.rb

+ 6
- 0
db/migrate/20201021080638_add_user_id_index_to_projects.rb 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

Loading…
Cancel
Save