dmails: add indexes on is_read and is_deleted (fix #2886).

This commit is contained in:
evazion
2017-02-18 05:44:57 -06:00
parent 291e9acdc7
commit d9349704c7
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexesToDmails < ActiveRecord::Migration
def change
execute "set statement_timeout = 0"
add_index :dmails, :is_read
add_index :dmails, :is_deleted
end
end