Commit c1b31dee authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7211 from cirosantilli/predictable-user

Add users with deterministic username and password to development seed.
parents 596bf4c2 57fddea8
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment