Implement forum topic voting and tag change pruning (#3580)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user