chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 392781f7aa
781 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
# test/factories/quarters.rb
# SchoolYear auto-creates 4 quarters via after_create, so create(:quarter) finds
# the existing quarter rather than inserting a new one (which would violate the
# uniqueness constraint on number scoped to school_year).
FactoryBot.define do
factory :quarter do
association :school_year
number { 1 }
name { "Quarter #{number}" }
to_create do |instance|
instance.id = instance.school_year.quarters.find_by!(number: instance.number).id
instance.reload
end
end
end