Remove outdated seeds

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-08-11 16:01:07 +03:00
parent f8eedb4cda
commit 3cc2c6ef79
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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