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

25 lines
473 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :classroom_enrollment do
student { association :student }
classroom { association :classroom }
enrolled_at { Time.current }
unenrolled_at { nil }
primary { false }
trait :current do
unenrolled_at { nil }
end
trait :historical do
enrolled_at { 1.year.ago }
unenrolled_at { 6.months.ago }
end
trait :primary do
primary { true }
end
end
end