diff options
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 39 |
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" |