add index on post_id for the incoming_emails table

This commit is contained in:
Régis Hanol 2016-04-25 17:50:50 +02:00
parent c7ba5a0d9d
commit e72f63e311
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class FixIncomingEmailsIndices < ActiveRecord::Migration
def change
add_index :incoming_emails, :post_id
end
end