Welcome to mirror list, hosted at ThFree Co, Russian Federation.

05_users.rb « development « fixtures « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3440a645408385293008c833ce3ec1c3d411c087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Gitlab::Seeder.quiet do
  (2..10).each  do |i|
    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