class UserIp < ApplicationRecord
  self.primary_key = :user_id, :ip_address_id

  belongs_to :user
  belongs_to :ip_address

  validates :user_id, presence: true
  validates :ip_address_id, presence: true
end
