Files
project-work/worker-toolkit-stocks-in-the-future/repo/app/models/classroom_grade.rb
Eric Bell 2854619bc9 chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

9 lines
181 B
Ruby

# frozen_string_literal: true
class ClassroomGrade < ApplicationRecord
belongs_to :classroom
belongs_to :grade
validates :grade_id, uniqueness: { scope: :classroom_id }
end