Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (423 Bytes)
Defect #37268
» perfomance_fixtures.rb
Marius BĂLTEANU
, 2022-06-27 21:13
require
File
.
expand_path
(
'../test_helper'
,
__FILE__
)
# Create projects
p
=
0
while
p
<=
500
Project
.
generate!
p
+=
1
end
# Create custom fields
c
=
0
while
c
<=
50
IssueCustomField
.
generate!
(
name:
"Cf
#{
c
}
"
,
is_for_all:
true
,
is_filter:
true
)
c
+=
1
end
# Create issues
i
=
0
while
i
<=
5000
p_id
=
rand
(
Project
.
first
.
id
..
Project
.
last
.
id
)
Issue
.
generate!
(
subject:
"Issue
#{
i
}
"
,
project_id:
p_id
)
i
+=
1
end
« Previous
1
…
7
8
9
10
Next »
(9-9/10)
Loading...