05_users.rb 311 Bytes
Newer Older
1
Gitlab::Seeder.quiet do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
  (2..10).each  do |i|
3 4 5 6 7 8 9 10 11 12 13 14 15
    begin
      User.seed(:id, [{
        id: i,
        username: Faker::Internet.user_name,
        name: Faker::Name.name,
        email: Faker::Internet.email,
      }])
      print '.'
    rescue ActiveRecord::RecordNotSaved
      print 'F'
    end
  end
end