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