diff options
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 17 |
1 files changed, 13 insertions, 4 deletions
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" |