Add missing indexes

See #7234
This commit is contained in:
Benjamin Neff 2017-08-13 17:58:52 +02:00
parent 7ffd7878d0
commit 0577bf8058
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View 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