From f485950caad9c07116dbb402836680bb0cb79e6e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 24 Jul 2015 12:53:51 -0400 Subject: [PATCH] Add an index to improve querying some post custom fields. --- db/migrate/20150724165259_add_index_to_post_custom_fields.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20150724165259_add_index_to_post_custom_fields.rb diff --git a/db/migrate/20150724165259_add_index_to_post_custom_fields.rb b/db/migrate/20150724165259_add_index_to_post_custom_fields.rb new file mode 100644 index 00000000000..b0197d311f3 --- /dev/null +++ b/db/migrate/20150724165259_add_index_to_post_custom_fields.rb @@ -0,0 +1,5 @@ +class AddIndexToPostCustomFields < ActiveRecord::Migration + def change + add_index :post_custom_fields, [:name, :value] + end +end