FIX: SearchLog: Do not store IP of logged in users

This commit is contained in:
riking
2018-05-21 11:48:06 -07:00
committed by Sam
parent 94124ee2a6
commit 1de0ef137e
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
class AllowNullIpSearchLog < ActiveRecord::Migration[5.1]
def up
begin
Migration::SafeMigrate.disable!
change_column :search_logs, :ip_address, :inet, null: true
ensure
Migration::SafeMigrate.enable!
end
end
def down
end
end