Created
March 28, 2019 10:05
-
-
Save MaryKuz/a5add464d2ce2dee644447da772455dd to your computer and use it in GitHub Desktop.
Fill the database with the initial information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1000.times do | |
Product.create \ | |
name: Faker::Commerce.product_name, | |
price: Faker::Number.between(1, 150), | |
description: Faker::Commerce.department | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment