mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: Hidden SiteSetting.keep_old_ip_address_count
to track IP history.
This commit is contained in:
8
app/models/user_ip_address_history.rb
Normal file
8
app/models/user_ip_address_history.rb
Normal file
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class UserIpAddressHistory < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
validates :user_id, presence: true
|
||||
validates :ip_address, presence: true, uniqueness: { scope: :user_id }
|
||||
end
|
Reference in New Issue
Block a user