diff options
Diffstat (limited to 'db/fixtures/development/32_crm.rb')
-rw-r--r-- | db/fixtures/development/32_crm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/32_crm.rb b/db/fixtures/development/32_crm.rb index bad2fc56ed3..1701763aba0 100644 --- a/db/fixtures/development/32_crm.rb +++ b/db/fixtures/development/32_crm.rb @@ -29,7 +29,7 @@ class Gitlab::Seeder::Crm group_id: group.id, first_name: first_name, last_name: last_name, - email: "#{first_name}.#{last_name}@example.org", + email: "#{first_name}.#{last_name}-#{index}@example.org", organization_id: organization_id ) @@ -41,7 +41,7 @@ end Gitlab::Seeder.quiet do puts "\nGenerating group crm organizations and contacts" - Group.all.find_each do |group| + Group.not_mass_generated.where('parent_id IS NULL').first(10).each do |group| Gitlab::Seeder::Crm.new(group).seed! end end |