mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: SearchLog: Do not store IP of logged in users
This commit is contained in:
13
db/migrate/20180521184439_allow_null_ip_search_log.rb
Normal file
13
db/migrate/20180521184439_allow_null_ip_search_log.rb
Normal 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
|
||||
Reference in New Issue
Block a user