mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 04:36:32 +08:00
9 lines
213 B
Ruby
9 lines
213 B
Ruby
![]() |
# 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
|