Commit 083f1e2f authored by Ciro Santilli's avatar Ciro Santilli

Fix dev user seed: multiple ID was used twice.

parent 2b88c9cd
......@@ -16,14 +16,13 @@ Gitlab::Seeder.quiet do
(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'
])
User.seed do |s|
s.username = "user#{i}"
s.name = "User #{i}"
s.email = "user#{i}@example.com"
s.confirmed_at = DateTime.now
s.password = '12345678'
end
print '.'
rescue ActiveRecord::RecordNotSaved
print 'F'
......
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