Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
083f1e2f
Commit
083f1e2f
authored
Sep 29, 2014
by
Ciro Santilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dev user seed: multiple ID was used twice.
parent
2b88c9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
db/fixtures/development/05_users.rb
db/fixtures/development/05_users.rb
+7
-8
No files found.
db/fixtures/development/05_users.rb
View file @
083f1e2f
...
@@ -16,14 +16,13 @@ Gitlab::Seeder.quiet do
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment