Sha256: e39334fc61876675c943536cbd61da1497467b2b72a81156aeb9a6dc052e96d2
Contents?: true
Size: 504 Bytes
Versions: 56
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true module Motor class Note < ::Motor::ApplicationRecord audited belongs_to :author, polymorphic: true, optional: true belongs_to :record, polymorphic: true has_many :note_tag_tags, dependent: :destroy has_many :tags, through: :note_tag_tags, class_name: 'Motor::NoteTag' has_many :reminders, as: :record, dependent: :destroy has_many :notifications, as: :record, dependent: :destroy scope :active, -> { where(deleted_at: nil) } end end
Version data entries
56 entries across 56 versions & 6 rubygems