12 lines
214 B
Ruby
12 lines
214 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class RSAPublicKey < ApplicationRecord
|
||
|
###############
|
||
|
# Validations #
|
||
|
###############
|
||
|
|
||
|
validates :pem, presence: true
|
||
|
|
||
|
validates :bits, inclusion: { in: [2048, 4096] }
|
||
|
end
|