/ip_addresses: add missing created_at, uploader_ip_addr indexes.

Add some missing indexes used by the /ip_addresses page.
This commit is contained in:
evazion
2019-11-11 20:34:44 -06:00
parent 73c02021a1
commit da8fbef5d6
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class IndexTablesOnCreatedAt < ActiveRecord::Migration[6.0]
def change
add_index :artist_commentary_versions, :created_at
add_index :users, :created_at
add_index :comments, :created_at
add_index :posts, :uploader_ip_addr
end
end