mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: TopicLinkClick: do not log IP of logged in users
This commit is contained in:
10
db/migrate/20180521190040_allow_null_ip_topic_link_click.rb
Normal file
10
db/migrate/20180521190040_allow_null_ip_topic_link_click.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class AllowNullIpTopicLinkClick < ActiveRecord::Migration[5.1]
|
||||
def up
|
||||
begin
|
||||
Migration::SafeMigrate.disable!
|
||||
change_column :topic_link_clicks, :ip_address, :inet, null: true
|
||||
ensure
|
||||
Migration::SafeMigrate.enable!
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user