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

Fix dev user seed: multiple ID was used twice.

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