1 2 3 4 5
class Certificate < ApplicationRecord belongs_to :metadatum scope :signing, ->() { where(use: :signing) } scope :encryption, ->() { where(use: :encryption) } end