From bcd73c5548666bae7fef57e7e22cb61126308259 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Tue, 31 Dec 2024 19:31:37 +0100 Subject: =?UTF-8?q?megaPush=20=F0=9F=98=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/seeds.rb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'db/seeds.rb') diff --git a/db/seeds.rb b/db/seeds.rb index 7fb3253..c70512c 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -10,14 +10,23 @@ User.create!( email_address: "wtt@marius-peter.com", - password: "password", - password_confirmation: "password", + password: "#wtt2024", + password_confirmation: "#wtt2024", admin: true ) puts "Seeded admin account" -(1..8).each do |id| - Tartiflette.create!(scoring_id: id) +[ "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) end puts "Seeded tartiflettes" -- cgit v1.2.3