Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rescheduled 🗓️
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
b66e6af4
Verified
Commit
b66e6af4
authored
5 months ago
by
tribut
Browse files
Options
Downloads
Patches
Plain Diff
Add static shifts
parent
3b417ebb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/seeds.rb
+261
-0
261 additions, 0 deletions
db/seeds.rb
with
261 additions
and
0 deletions
db/seeds.rb
+
261
−
0
View file @
b66e6af4
...
...
@@ -78,6 +78,267 @@ Conference.find_or_create_by(slug: "38c3-more").tap do |c|
c
.
save!
end
orga
=
Conference
.
find_or_create_by
(
slug:
"38c3-orga"
).
tap
do
|
c
|
c
.
name
=
"38th Chaos Communication Congress (internal shifts)"
c
.
time_zone
=
"Berlin"
c
.
starts_at
=
DateTime
.
parse
(
"27 December 2024 10:30 CET"
)
c
.
ends_at
=
DateTime
.
parse
(
"30 December 2024 19:00 CET"
)
c
.
location
=
"Congress Center Hamburg"
c
.
save!
end
stage_standby
=
Stage
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3lingo-stage-deen"
).
tap
do
|
stage_
|
stage_
.
name
=
"C3Lingo Standby"
stage_
.
weight
=
100
stage_
.
save!
end
stage_coordinator
=
Stage
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3lingo-stage-more"
).
tap
do
|
stage_
|
stage_
.
name
=
"C3Lingo Coordinator"
stage_
.
weight
=
200
stage_
.
save!
end
stage_service
=
Stage
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3lingo-stage-service"
).
tap
do
|
stage_
|
stage_
.
name
=
"C3Lingo Service"
stage_
.
weight
=
50
stage_
.
save!
end
orga
.
relevant_stages
=
orga
.
stages
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241227-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-27T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241227-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-27T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241228-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-28T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241228-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-28T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241229-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-29T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241229-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-29T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241230-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-30T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-30T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241230-1015"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-30T10:15:00+01:00"
shift_
.
ends_at
=
"2024-12-30T14:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241227-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-27T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241227-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-27T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241228-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-28T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241228-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-28T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241229-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-29T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241229-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-29T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241230-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-30T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-30T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241230-1415"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-30T14:15:00+01:00"
shift_
.
ends_at
=
"2024-12-30T18:15:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241227-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-27T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241227-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-27T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-27T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241228-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-28T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241228-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-28T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-28T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-01-20241229-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_standby
shift_
.
title
=
"Standby Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-29T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-02-20241229-1900"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_coordinator
shift_
.
title
=
"Coordinator Shift"
shift_
.
language
=
"en"
shift_
.
url
=
"https://rescheduled.c3lingo.org/"
shift_
.
starts_at
=
"2024-12-29T19:00:00+01:00"
shift_
.
ends_at
=
"2024-12-29T23:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-03-20241227"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_service
shift_
.
title
=
"General Angel Meeting"
shift_
.
language
=
"de"
shift_
.
description
=
"This is a placeholder, I really don't know when and where this will take place"
shift_
.
url
=
"https://engel.events.ccc.de/"
shift_
.
starts_at
=
"2024-12-27T18:00:00+01:00"
shift_
.
ends_at
=
"2024-12-27T19:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-03-20241228"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_service
shift_
.
title
=
"General Angel Meeting"
shift_
.
language
=
"de"
shift_
.
description
=
"This is a placeholder, I really don't know when and where this will take place"
shift_
.
url
=
"https://engel.events.ccc.de/"
shift_
.
starts_at
=
"2024-12-28T18:00:00+01:00"
shift_
.
ends_at
=
"2024-12-28T19:00:00+01:00"
shift_
.
save!
end
Session
.
find_or_create_by
(
conference:
orga
,
ref_id:
"c3-4242-03-20241229"
).
tap
do
|
shift_
|
shift_
.
stage
=
stage_service
shift_
.
title
=
"General Angel Meeting"
shift_
.
language
=
"de"
shift_
.
description
=
"This is a placeholder, I really don't know when and where this will take place"
shift_
.
url
=
"https://engel.events.ccc.de/"
shift_
.
starts_at
=
"2024-12-29T18:00:00+01:00"
shift_
.
ends_at
=
"2024-12-29T19:00:00+01:00"
shift_
.
save!
end
if
Rails
.
env
.
development?
%w[coverage fog comedy adjust forge fail vigorous promise chemistry conception meat storage certain warm develop civilian cousin injection hammer health appetite conventional good snake grant suspect atmosphere linen wrong deal calf sea management silence watch nuance loan quit convert failure bracket slice sweat treaty plot still chimpanzee assume functional marsh dream mail state dorm kid formation secular agile beach guide salesperson merit goalkeeper incongruous cart pig joystick regulation apparatus myth patent glue behead flu departure spectrum parking indication delay hesitate viable lay treat cooperative sensation auction sphere stain tap pass]
.
each
do
|
username
|
User
.
find_or_create_by
(
name:
username
)
do
|
u
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment