discourse/app/models/user_ip_address_history.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
213 B
Ruby
Raw Normal View History

# 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