mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
PERF: add missing index on post actions
This commit is contained in:
parent
51d82fc25d
commit
8362993099
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…
x
Reference in New Issue
Block a user