diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-08-13 18:58:52 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-08-13 21:10:07 +0300 |
commit | 0577bf80588c397d3b2391b90f8011fe5e077186 (patch) | |
tree | 87fb4317d3ca2f42e4f1e6ed3fa01ac28eaa11d3 /db | |
parent | 7ffd7878d027b0b14993c6d303a2c753db263319 (diff) |
Add missing indexes
See #7234
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170813153048_add_missing_indexes.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20170813153048_add_missing_indexes.rb b/db/migrate/20170813153048_add_missing_indexes.rb new file mode 100644 index 000000000..9da177a30 --- /dev/null +++ b/db/migrate/20170813153048_add_missing_indexes.rb @@ -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 |