Skip to content

Commit

Permalink
Validate import
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyoseni committed Jul 28, 2019
1 parent 2402f87 commit 1d78bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d78bbf

Please sign in to comment.