1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/models/x509_certificate_request.rb

19 lines
362 B
Ruby

# frozen_string_literal: true
class X509CertificateRequest < ApplicationRecord
################
# Associations #
################
belongs_to :rsa_public_key
###############
# Validations #
###############
validates :distinguished_name,
presence: true,
length: { maximum: 10_000 }
validates :pem, presence: true
end