Skip to content
Snippets Groups Projects
Select Git revision
  • febc653252677087fe0c58ddbb6193c622d0ecf8
  • main default protected
  • renovate/solid_queue-1.x-lockfile
  • renovate/importmap-rails-2.x-lockfile
  • renovate/redis-5.x-lockfile
  • renovate/ruby
  • renovate/selenium-webdriver-4.x-lockfile
  • renovate/icalendar-2.x-lockfile
  • renovate/debug-1.x-lockfile
  • renovate/turbo-rails-2.x-lockfile
  • renovate/gcr.io-kaniko-project-executor-1.x
  • eh22 protected
  • update-rubocop
13 results

seeds.rb

Blame
  • seeds.rb 3.96 KiB
    # This file should ensure the existence of records required to run the application in every environment (production,
    # development, test). The code here should be idempotent so that it can be executed at any point in every environment.
    # The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
    #
    # Example:
    #
    #   ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
    #     MovieGenre.find_or_create_by!(name: genre_name)
    #   end
    
    Conference.find_or_create_by!(slug: "rp2023") do |c|
      c.name = "re:publica 2023"
      c.time_zone = "Berlin"
      c.starts_at = DateTime.parse("Mon, 05 Jun 2023 08:30:00.000000000 UTC +00:00")
      c.ends_at = DateTime.parse("Wed, 07 Jun 2023 20:50:00.000000000 UTC +00:00")
      c.data = {
        "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2023/speaker.json",
        "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2023/session.json"
      }
      c.import_job_class = "republica_2023_or_later"
      c.location = "Arena Berlin"
    end
    
    Conference.find_or_create_by!(slug: "rp2024") do |c|
      c.name = "re:publica 2024"
      c.time_zone = "Berlin"
      c.starts_at = DateTime.parse("27 May 2024 10:30 CEST")
      c.ends_at = DateTime.parse("29 May 2024 19:45 CEST")
      c.data = {
        "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2024/speaker.json",
        "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2024/session.json"
      }
      c.import_job_class = "republica_2023_or_later"
      c.location = "STATION Berlin"
    end
    
    Conference.find_or_create_by!(slug: "37c3") do |c|
      c.name = "37th Chaos Communication Congress"
      c.time_zone = "Berlin"
      c.starts_at = DateTime.parse("27 December 2023 10:30 CET")
      c.ends_at = DateTime.parse("30 December 2023 19:00 CET")
      c.data = {
        "schedule_url" => "https://fahrplan.events.ccc.de/congress/2023/fahrplan/schedule.json"
      }
      c.import_job_class = "pretalx"
      c.location = "Congress Center Hamburg"
    end
    
    Conference.find_or_create_by!(slug: "38c3").tap do |c|
      c.name = "38th Chaos Communication Congress (de-en)"
      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.data = {
        "schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json"
      }
      c.import_job_class = "pretalx"
      c.location = "Congress Center Hamburg"
      c.save!
    end
    
    Conference.find_or_create_by!(slug: "38c3-more").tap do |c|
      c.name = "38th Chaos Communication Congress (more languages)"
      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.data = {
        "schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json"
      }
      c.import_job_class = "pretalx"