Add an index to improve querying some post custom fields.

This commit is contained in:
Robin Ward 2015-07-24 12:53:51 -04:00
parent 29439e5534
commit f485950caa
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddIndexToPostCustomFields < ActiveRecord::Migration
def change
add_index :post_custom_fields, [:name, :value]
end
end