Remove outdated seeds
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
f8eedb4cda
commit
3cc2c6ef79
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
Gitlab::Seeder.quiet do
|
||||
(1..300).each do |i|
|
||||
# Random Project
|
||||
project = Project.all.sample
|
||||
|
||||
# Random user
|
||||
user = project.users.sample
|
||||
|
||||
next unless user
|
||||
|
||||
user_id = user.id
|
||||
|
||||
Note.seed(:id, [{
|
||||
id: i,
|
||||
project_id: project.id,
|
||||
author_id: user_id,
|
||||
note: Faker::Lorem.sentence(6)
|
||||
}])
|
||||
print('.')
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue