# david = User.create(email: 'david@site.com', name: 'david', password: 'password') # james = User.create(email: 'james@site.com', name: 'james', password: 'password') # sally = User.create(email: 'sally@site.com', name: 'sally', password: 'password') # 10.times do |i| # Post.create(title: "Post #{i}", body: "This is the body of post #{i}", user: User.all.sample) # end