Add missing indexes

See #7234
parent 7ffd7878
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment