Skip to content

Commit

Permalink
chore seeds.rb: #7
Browse files Browse the repository at this point in the history
do not create product on seed.
  • Loading branch information
Pauloparakleto committed Dec 22, 2023
1 parent 23b725d commit 16044f9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@
Rails.logger.debug 'Categories'
50.times { FactoryBot.create(:category, name: Faker::Lorem.word) }
50.times { Category.create(name: Faker::Lorem.word, account_id: 1) }
50.times do
Product.create(
name: Faker::Commerce.product_name,
sku: Faker::Number.number(digits: 10),
extra_sku: Faker::Number.number(digits: 10),
price: Faker::Commerce.price,
active: true,
account_id: 1,
category_id: 1
)
end
50.times do
Customer.create(name: Faker::Name.name, email: Faker::Internet.email, phone: Faker::PhoneNumber.phone_number,
cpf: Faker::Number.number(digits: 11), account_id: 1)
Expand Down

0 comments on commit 16044f9

Please sign in to comment.