We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 934680b + 405e7d4 commit fac765aCopy full SHA for fac765a
db/seeds.rb
@@ -161,9 +161,12 @@ def setup_clinic(team)
161
academic_year = AcademicYear.current
162
clinic_session = team.generic_clinic_session(academic_year:)
163
164
- clinic_session.session_dates.create!(value: Date.current)
165
- clinic_session.session_dates.create!(value: Date.current - 1.day)
166
- clinic_session.session_dates.create!(value: Date.current + 1.day)
+ [Date.current, Date.yesterday, Date.tomorrow].each do |value|
+ if value.in?(academic_year.to_academic_year_date_range)
+ clinic_session.session_dates.create!(value:)
167
+ end
168
169
+
170
clinic_session.update!(send_invitations_at: Date.current - 3.weeks)
171
172
# All patients belong to the community clinic. This is normally
0 commit comments