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

9 lines
210 B
Ruby

# frozen_string_literal: true
class TeacherClassroom < ApplicationRecord
belongs_to :teacher, class_name: "Teacher"
belongs_to :classroom
validates :teacher_id, uniqueness: { scope: :classroom_id }
end