Files
project-work/worker-toolkit-stocks-in-the-future/repo/app/models/school.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
203 B
Ruby

# frozen_string_literal: true
class School < ApplicationRecord
has_many :school_years, dependent: :restrict_with_error
has_many :years, through: :school_years
validates :name, presence: true
end