From 271a22f4d1b66636659038d7b481c84b715bf6f7 Mon Sep 17 00:00:00 2001 From: Felix Eckhofer <felix@eckhofer.com> Date: Thu, 26 Dec 2024 14:18:58 +0100 Subject: [PATCH] Properly fix seeding empty database Ref: bef7e6dce6de5d1fe36ff0ccf4ba22e2102aeabb --- db/seeds.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 4b58a58..848e809 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -8,7 +8,7 @@ # MovieGenre.find_or_create_by!(name: genre_name) # end -# Conference.find_or_create_by!(slug: "rp2023") do |c| +# Conference.find_or_create_by(slug: "rp2023").tap 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") @@ -22,7 +22,7 @@ # c.save! # end -# Conference.find_or_create_by!(slug: "rp2024") do |c| +# Conference.find_or_create_by(slug: "rp2024").tap do |c| # c.name = "re:publica 2024" # c.time_zone = "Berlin" # c.starts_at = DateTime.parse("27 May 2024 10:30 CEST") @@ -36,7 +36,7 @@ # c.save! # end -# Conference.find_or_create_by!(slug: "37c3") do |c| +# Conference.find_or_create_by(slug: "37c3").tap do |c| # c.name = "37th Chaos Communication Congress" # c.time_zone = "Berlin" # c.starts_at = DateTime.parse("27 December 2023 10:30 CET") @@ -49,7 +49,7 @@ # c.save! # end -Conference.find_or_create_by!(slug: "38c3").tap do |c| +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") @@ -66,7 +66,7 @@ Conference.find_or_create_by!(slug: "38c3").tap do |c| c.save! end -Conference.find_or_create_by!(slug: "38c3-more").tap do |c| +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") -- GitLab