added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# == Schema Information
#
# Table name: trackings
#
# id :integer not null, primary key
# user_id :integer
# trackable_id :integer
# trackable_type :string
# start_at :date
# end_at :date
# color_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryBot.define do
factory :tracking do
user
trait :for_condition do
association :trackable, factory: :condition
end
trait :for_symptom do
association :trackable, factory: :symptom
end
trait :for_treatment do
association :trackable, factory: :treatment
end
trait :active do
start_at { Time.zone.today }
end
trait :inactive do
start_at { Time.zone.today - 7.days }
end_at { Date.yesterday }
end
end
end