Implement forum topic voting and tag change pruning (#3580)

This commit is contained in:
Albert Yi
2018-04-16 16:09:39 -07:00
parent 45fad069d7
commit f2b525a6d2
182 changed files with 558 additions and 554 deletions

View File

@@ -1,7 +1,10 @@
class RemoveUnusedIndexes < ActiveRecord::Migration
class RemoveUnusedIndexes < ActiveRecord::Migration[4.2]
def change
execute "set statement_timeout = 0"
remove_index :posts, :source
remove_index :posts, :uploader_ip_addr
begin
remove_index :posts, :source
remove_index :posts, :uploader_ip_addr
rescue ArgumentError
end
end
end