class PlatformSample < ApplicationRecord # samples_type: taskPass-实训过关任务; script-实训通用脚本模板; # introduction-实训简介模板; knowledge-实训背景知识 validates_uniqueness_of :samples_type end