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

Version Path
better_record-0.21.3 app/models/better_record/attachment_validation.rb
better_record-0.21.2 app/models/better_record/attachment_validation.rb
better_record-0.20.2 app/models/better_record/attachment_validation.rb
better_record-0.19.10 app/models/better_record/attachment_validation.rb
better_record-0.19.9 app/models/better_record/attachment_validation.rb
better_record-0.19.8 app/models/better_record/attachment_validation.rb
better_record-0.19.7 app/models/better_record/attachment_validation.rb
better_record-0.19.6 app/models/better_record/attachment_validation.rb
better_record-0.19.4 app/models/better_record/attachment_validation.rb
better_record-0.19.2 app/models/better_record/attachment_validation.rb
better_record-0.19.1 app/models/better_record/attachment_validation.rb
better_record-0.19.0 app/models/better_record/attachment_validation.rb
better_record-0.18.3 app/models/better_record/attachment_validation.rb
better_record-0.18.2 app/models/better_record/attachment_validation.rb
better_record-0.18.1 app/models/better_record/attachment_validation.rb
better_record-0.18.0 app/models/better_record/attachment_validation.rb
better_record-0.17.9 app/models/better_record/attachment_validation.rb
better_record-0.17.8 app/models/better_record/attachment_validation.rb
better_record-0.17.4 app/models/better_record/attachment_validation.rb
better_record-0.17.3 app/models/better_record/attachment_validation.rb