Add IP addr indexes on comments & artist/artcomm/wikipage versions.

This commit is contained in:
evazion
2017-01-12 06:28:35 +00:00
parent e8f71739be
commit 3ca638bc92
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class AddIpAddrIndexesToTables < ActiveRecord::Migration
def change
reversible { execute "set statement_timeout = 0" }
add_index :wiki_page_versions, :updater_ip_addr
add_index :artist_commentary_versions, :updater_ip_addr
add_index :artist_versions, :updater_ip_addr
add_index :comments, :ip_addr
end
end