ファイル
btrc-hub/backend/app/models/material_version.rb
T
2026-11-03 15:17:10 +09:00

16 行
476 B
Ruby

class MaterialVersion < ApplicationRecord
EVENT_TYPE_MAP = { create: 'create',
update: 'update',
discard: 'discard',
restore: 'restore' }.freeze
include VersionRecord
belongs_to :material
belongs_to :tag, optional: true
belongs_to :parent, class_name: 'Material', optional: true
belongs_to :updated_by_user, class_name: 'User', optional: true
def export_paths_hash = export_paths_json || { }
end