Skip to content

Commit 78b8632

Browse files
committed
Update seeds to smuggle Mäx through new validations
1 parent 783352c commit 78b8632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

db/seeds.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
puts "Created main users: #{users.map(&:first_name).join(', ')}"
3232

3333
more_users = %w[Joshy Nadieschka Hansibaby Lisita Juanfairy Nomnom Santimaus Florenke Mäx].map do |name|
34+
email_name = name.gsub('ä', 'ae').gsub('ö', 'oe').gsub('ü', 'ue')
3435
User.create!(
3536
first_name: name,
3637
last_name: 'Testy',
37-
email: "#{name.downcase}@test.com",
38+
email: "#{email_name.downcase}@test.com",
3839
emoji: EMOJIS.sample,
3940
password: 'G1ggl3!Fluff',
4041
confirmed_at: Time.current

0 commit comments

Comments
 (0)