db: drop IP addresses from certain tables.

Don't track IP addresses for post appeals, post flags, tag aliases, tag
implications, or user feedbacks. These things are already tightly
limited. We don't need IPs from them to detect sockpuppets.
This commit is contained in:
evazion
2019-11-17 02:28:19 -06:00
parent 72f17fd1de
commit a2ea2a65a1
9 changed files with 17 additions and 49 deletions

View File

@@ -0,0 +1,13 @@
class DropIpAddrsFromVariousTables < ActiveRecord::Migration[6.0]
def change
remove_index :post_appeals, :creator_ip_addr
remove_index :post_flags, :creator_ip_addr
remove_index :user_feedback, :creator_ip_addr
remove_column :post_appeals, :creator_ip_addr, :inet
remove_column :post_flags, :creator_ip_addr, :inet, null: false
remove_column :tag_aliases, :creator_ip_addr, :inet, null: false
remove_column :tag_implications, :creator_ip_addr, :inet, null: false
remove_column :user_feedback, :creator_ip_addr, :inet
end
end