Sha256: 2051282cdcada1205ec71a46f57c98e69fd5d8a3118abbe57b4c2c99b820b01b
Contents?: true
Size: 585 Bytes
Versions: 10
Compression:
Stored size: 585 Bytes
Contents
puts 'Users' 3.times do User.create!(username: Faker::Name.name) print '.' end puts puts 'Posts' User.all.each do |user| 3.times do user.posts.create!( title: Faker::Lorem.sentence, content: Faker::Lorem.paragraphs(3).join ) print '.' end end puts puts 'Comments' users = User.all posts = Post.all 20.times do user = users.sample post = posts.sample Comment.create!( user: user, commentable: post, title: Faker::Lorem.sentence, raw_content: Faker::Lorem.paragraphs(3).join, state: :published ) print '.' end puts
Version data entries
10 entries across 10 versions & 3 rubygems