diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-04 09:48:49 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-04 09:48:49 +0300 |
commit | d7e3fadb42e00f680034a70735bcea21b9f74dca (patch) | |
tree | a3b99edb7f5e9a4872f39548bfa1ba03f0c52070 /db/fixtures/development | |
parent | fa65b65b0f5e7095e2ec7c4ca0c269a4fe4baab1 (diff) |
Ensure we generate unique usernames otherwise validations fail
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db/fixtures/development')
-rw-r--r-- | db/fixtures/development/18_abuse_reports.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/18_abuse_reports.rb b/db/fixtures/development/18_abuse_reports.rb index a3d33706d8e..88d2f784852 100644 --- a/db/fixtures/development/18_abuse_reports.rb +++ b/db/fixtures/development/18_abuse_reports.rb @@ -4,10 +4,10 @@ module Db class AbuseReport def self.seed Gitlab::Seeder.quiet do - (::AbuseReport.default_per_page + 3).times do + (::AbuseReport.default_per_page + 3).times do |i| reported_user = ::User.create!( - username: "#{FFaker::Internet.user_name}-reported", + username: "reported_user_#{i}", name: FFaker::Name.name, email: FFaker::Internet.email, confirmed_at: DateTime.now, |