diff --git a/db/migrate/20150724165259_add_index_to_post_custom_fields.rb b/db/migrate/20150724165259_add_index_to_post_custom_fields.rb index b0197d311..230b3d499 100644 --- a/db/migrate/20150724165259_add_index_to_post_custom_fields.rb +++ b/db/migrate/20150724165259_add_index_to_post_custom_fields.rb @@ -1,5 +1,14 @@ class AddIndexToPostCustomFields < ActiveRecord::Migration - def change - add_index :post_custom_fields, [:name, :value] + def up + execute <