Skip to content
Snippets Groups Projects
Unverified Commit ae7ea8a4 authored by tribut's avatar tribut :man_dancing:
Browse files

Update DB from seeds

parent a249b289
Branches
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ Conference.find_or_create_by!(slug: "37c3") do |c| ...@@ -46,7 +46,7 @@ Conference.find_or_create_by!(slug: "37c3") do |c|
c.location = "Congress Center Hamburg" c.location = "Congress Center Hamburg"
end end
Conference.find_or_create_by!(slug: "38c3") do |c| Conference.find_or_create_by!(slug: "38c3").tap do |c|
c.name = "38th Chaos Communication Congress (de-en)" c.name = "38th Chaos Communication Congress (de-en)"
c.time_zone = "Berlin" c.time_zone = "Berlin"
c.starts_at = DateTime.parse("27 December 2024 10:30 CET") c.starts_at = DateTime.parse("27 December 2024 10:30 CET")
...@@ -56,9 +56,10 @@ Conference.find_or_create_by!(slug: "38c3") do |c| ...@@ -56,9 +56,10 @@ Conference.find_or_create_by!(slug: "38c3") do |c|
} }
c.import_job_class = "pretalx" c.import_job_class = "pretalx"
c.location = "Congress Center Hamburg" c.location = "Congress Center Hamburg"
c.save!
end end
Conference.find_or_create_by!(slug: "38c3-more") do |c| Conference.find_or_create_by!(slug: "38c3-more").tap do |c|
c.name = "38th Chaos Communication Congress (more languages)" c.name = "38th Chaos Communication Congress (more languages)"
c.time_zone = "Berlin" c.time_zone = "Berlin"
c.starts_at = DateTime.parse("27 December 2024 10:30 CET") c.starts_at = DateTime.parse("27 December 2024 10:30 CET")
...@@ -68,10 +69,11 @@ Conference.find_or_create_by!(slug: "38c3-more") do |c| ...@@ -68,10 +69,11 @@ Conference.find_or_create_by!(slug: "38c3-more") do |c|
} }
c.import_job_class = "pretalx" c.import_job_class = "pretalx"
c.location = "Congress Center Hamburg" c.location = "Congress Center Hamburg"
c.save!
end end
%w[tribut Teal hdsjulian Sophie bergpiratin sblsg Max aerowaffle ningwie Senana ToniHDS].each do |username| %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| User.find_or_create_by(name: username).tap do |u|
u.email = "c3lingo+#{username}@x.moeffju.net" u.email = "c3lingo+#{username}@x.moeffju.net"
u.invitation_token = "gargamel" u.invitation_token = "gargamel"
u.save! u.save!
...@@ -79,8 +81,8 @@ end ...@@ -79,8 +81,8 @@ end
end end
if token = fetch_credential("telegram_bot_token") if token = fetch_credential("telegram_bot_token")
NotificationChannel.find_or_create_by(name: "telegram_group_chat") do |c| NotificationChannel.find_or_create_by(name: "telegram_group_chat").tap do |c|
c.token = token c.data = { token: token }
c.save! c.save!
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment