parent
7ffd7878d0
commit
0577bf8058
1 changed files with 7 additions and 0 deletions
7
db/migrate/20170813153048_add_missing_indexes.rb
Normal file
7
db/migrate/20170813153048_add_missing_indexes.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
class AddMissingIndexes < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
add_index :photos, :author_id
|
||||||
|
add_index :user_preferences, %i[user_id email_type], length: {email_type: 190}
|
||||||
|
add_index :locations, :status_message_id
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue