Skip to content

Commit

Permalink
PERF: add missing index on post actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed May 13, 2015
1 parent 51d82fc commit 8362993
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20150513094042_add_index_on_post_actions.rb
@@ -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

0 comments on commit 8362993

Please sign in to comment.