Ensure seeds.rb does not fail validation (#6210)
This commit is contained in:
parent
318ee32cdd
commit
a6d9390948
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ User.clear_index!
|
|||
roles = %i[trusted chatroom_beta_tester workshop_pass]
|
||||
|
||||
num_users.times do |i|
|
||||
name = "#{Faker::Name.name} #{Faker::Lorem.word.titleize}"
|
||||
name = Faker::Name.unique.name
|
||||
|
||||
user = User.create!(
|
||||
name: name,
|
||||
|
|
@ -43,7 +43,7 @@ num_users.times do |i|
|
|||
twitter_username: Faker::Internet.username(specifier: name),
|
||||
email_comment_notifications: false,
|
||||
email_follower_notifications: false,
|
||||
email: Faker::Internet.email(name: name, separators: "+"),
|
||||
email: Faker::Internet.email(name: name, separators: "+", domain: Faker::Internet.domain_word.first(20)), # Emails limited to 50 characters
|
||||
confirmed_at: Time.current,
|
||||
password: "password",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue