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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
27e3b47b
Commit
27e3b47b
authored
Mar 08, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user fixtures for development
parent
8b551ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
db/fixtures/development/05_users.rb
db/fixtures/development/05_users.rb
+14
-13
No files found.
db/fixtures/development/05_users.rb
View file @
27e3b47b
Gitlab
::
Seeder
.
quiet
do
Gitlab
::
Seeder
.
quiet
do
(
2
..
20
).
each
do
|
i
|
(
2
..
20
).
each
do
|
i
|
begin
begin
User
.
seed
(
:id
,
[{
User
.
create!
(
id:
i
,
username:
Faker
::
Internet
.
user_name
,
username:
Faker
::
Internet
.
user_name
,
name:
Faker
::
Name
.
name
,
name:
Faker
::
Name
.
name
,
email:
Faker
::
Internet
.
email
,
email:
Faker
::
Internet
.
email
,
confirmed_at:
DateTime
.
now
confirmed_at:
DateTime
.
now
,
}])
password:
'12345678'
)
print
'.'
print
'.'
rescue
ActiveRecord
::
Record
NotSave
d
rescue
ActiveRecord
::
Record
Invali
d
print
'F'
print
'F'
end
end
end
end
(
1
..
5
).
each
do
|
i
|
(
1
..
5
).
each
do
|
i
|
begin
begin
User
.
seed
do
|
s
|
User
.
create!
(
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
::
Record
NotSave
d
rescue
ActiveRecord
::
Record
Invali
d
print
'F'
print
'F'
end
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