diff --git a/db/migrate/20150120005624_remove_unused_indexes.rb b/db/migrate/20150120005624_remove_unused_indexes.rb new file mode 100644 index 000000000..32890b329 --- /dev/null +++ b/db/migrate/20150120005624_remove_unused_indexes.rb @@ -0,0 +1,7 @@ +class RemoveUnusedIndexes < ActiveRecord::Migration + def change + execute "set statement_timeout = 0" + remove_index :posts, :source + remove_index :posts, :uploader_ip_addr + end +end