Skip to content
Snippets Groups Projects
Commit 57fddea8 authored by Ciro Santilli's avatar Ciro Santilli
Browse files

Add users with predictable username and password

to development seed.
parent 174c00cf
No related branches found
No related tags found
Loading
Loading
Loading
@@ -13,4 +13,20 @@ Gitlab::Seeder.quiet do
print 'F'
end
end
(1..5).each do |i|
begin
User.seed(:id, [
id: i + 10,
username: "user#{i}",
name: "User #{i}",
email: "user#{i}@example.com",
confirmed_at: DateTime.now,
password: '12345678'
])
print '.'
rescue ActiveRecord::RecordNotSaved
print 'F'
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment