From 1d78bbf191ed9c2c7f5bf0ed107344199317733c Mon Sep 17 00:00:00 2001 From: Halimat Mercy Oseni Date: Sun, 28 Jul 2019 02:39:47 +0100 Subject: [PATCH] Validate import --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index f29ea4a..06ee141 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -43,7 +43,7 @@ } ] - imported_mushrooms = Mushroom.import mushrooms, batch_size: 1000 + imported_mushrooms = Mushroom.import mushrooms, validate: true imported_mushrooms.failed_instances.each do |failure| failed_row_count += 1