Add users with predictable username and password

to development seed.
This commit is contained in:
Ciro Santilli 2014-06-27 00:04:10 +02:00
parent 174c00cf2c
commit 57fddea8bb

View file

@ -13,4 +13,20 @@ Gitlab::Seeder.quiet do
print 'F' print 'F'
end end
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 end