summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-01-01 16:25:18 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-01-01 16:25:18 +0100
commit4d61303eb58cf32f95052227c3158a392dd23373 (patch)
tree07f82d9e818495cdf51094c6aa2050ca9ddbea36 /db
parent8ecae24f6c47476fbf53c5fd04089e7e093d7279 (diff)
Updated database seed data.
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb39
1 files changed, 28 insertions, 11 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index c70512c..f049f01 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -16,17 +16,34 @@ User.create!(
)
puts "Seeded admin account"
-[ "Tartiff Clofi",
- "Tartiff Caraïbe-Ananas",
- "L'Irrésistible",
- "[quatre]",
- "[cinq]",
- "[six]",
- "[sept]",
- "[huit]",
-].each_with_index do |name, id|
- scoring_id = id + 1
- Tartiflette.create!(name: name, scoring_id: scoring_id)
+[ { participant: "Claudine",
+ name: "Tartiff Clofi"
+ },
+ { participant: "Achille",
+ name: "Tartiff Caraïbe-Ananas"
+ },
+ { participant: "Michel",
+ name: "L'Irrésistible"
+ },
+ { participant: "Nicolas",
+ name: "Avaloù-Douariflette"
+ },
+ { participant: "",
+ name: "[cinq]"
+ },
+ { participant: "",
+ name: "[six]"
+ },
+ { participant: "",
+ name: "[sept]"
+ },
+ { participant: "",
+ name: "[huit]"
+ } ].each.with_index(1) do |t, scoring_id|
+ Tartiflette.create!(
+ scoring_id: scoring_id,
+ name: t[:name]
+ )
end
puts "Seeded tartiflettes"
Copyright 2019--2025 Marius PETER