BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c1b31dee
Commit
c1b31dee
authored
Sep 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7211 from cirosantilli/predictable-user
Add users with deterministic username and password to development seed.
parents
596bf4c2
57fddea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
05_users.rb
db/fixtures/development/05_users.rb
+16
-0
No files found.
db/fixtures/development/05_users.rb
View file @
c1b31dee
...
...
@@ -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
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