mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Add index for EmailLog#topic_id
and EmailLog#post_id
.
This commit is contained in:
parent
afb18a5c41
commit
9c66473c4c
6
db/migrate/20180111092141_add_indexes_to_email_logs.rb
Normal file
6
db/migrate/20180111092141_add_indexes_to_email_logs.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
class AddIndexesToEmailLogs < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
add_index :email_logs, :post_id
|
||||||
|
add_index :email_logs, :topic_id
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user