FIX: TopicLinkClick: do not log IP of logged in users

This commit is contained in:
riking
2018-05-21 12:04:55 -07:00
committed by Sam
parent 24abf38d38
commit 9b0efe9c84
2 changed files with 12 additions and 2 deletions

View 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