Commit 1054e05a authored by Malte Schmitz's avatar Malte Schmitz
Browse files

Revert "Corona skill is no longer required"

This reverts commit c6543ea0.
parent c7ad94b0
......@@ -6,11 +6,13 @@ namespace :shifts do
e = Event.find(6)
s = DateTime.now.at_beginning_of_day() # today at 0:00
s = s.advance(days: 1, hours:14) # tomorrow at 14:00
corona_skill = Skill.find(14)
Event.transaction do
18.times do # until 8:00 next day
name = wdays[s.wday] + ", " + s.strftime("%d.%m.%Y %H:%M") + " bis " + s.advance(hours: 1).strftime("%H:%M") + " Uhr"
shift = e.shifts.create!(name: name, description: "", start: s, end: s.advance(hours: 1), max_users: 20)
shift.skills << corona_skill
s = s.advance(hours: 1)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment