Sha256: f324b165d805b3d0f97f204c9d44b615a1346d04275de993821997607422bcac
Contents?: true
Size: 1.38 KB
Versions: 22
Compression:
Stored size: 1.38 KB
Contents
# frozen_string_literal: true module BetterRecord class AttachmentValidation < Base # == Constants ============================================================ # == Attributes =========================================================== # == Extensions =========================================================== # == Relationships ======================================================== belongs_to :attachment, class_name: 'ActiveStorage::Attachment', inverse_of: :validations ActiveStorage::Attachment.has_many :validations, class_name: 'BetterRecord::AttachmentValidation', foreign_key: :attachment_id, inverse_of: :attachment, dependent: :destroy # == Validations ========================================================== validates_presence_of :name # == Scopes =============================================================== # == Callbacks ============================================================ # == Boolean Class Methods ================================================ # == Class Methods ======================================================== # def self.boolean_columns # @@boolean_columns ||= %i[ ran ].freeze # end # == Boolean Methods ====================================================== # == Instance Methods ===================================================== end end
Version data entries
22 entries across 22 versions & 1 rubygems