mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
PERF: add missing index on post actions
This commit is contained in:
parent
51d82fc25d
commit
8362993099
1 changed files with 5 additions and 0 deletions
5
db/migrate/20150513094042_add_index_on_post_actions.rb
Normal file
5
db/migrate/20150513094042_add_index_on_post_actions.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddIndexOnPostActions < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :post_actions, [:user_id, :post_action_type_id], where: 'deleted_at IS NULL'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue