Ok, so I've been working my way through the beautiful Hartl Tutorial we all love - I'm stuck on a particular issue. Ch 11.2, very end - we've just built the seed and migration for basic user posting data, but he and I get different results.
I have the following in my db/seeds.db:
users = User.order(:created_at).take(6)
50.times do
content = Faker::Lorem.sentence(5)
users.each { |user| user.microposts.create!(content: content) }
end
I'll run a rake:reset and it generates a table with 100 users and 29200 microposts total. This number is clearly way too high. I don't understand what's going on entirely, where can I find more debugging info?
Here's my current branch repo:
Thanks for any help!
Aucun commentaire:
Enregistrer un commentaire