Last active
March 18, 2020 17:37
-
-
Save starwels/01c51ca1a646d5cdb21f6a5e27cc1ed8 to your computer and use it in GitHub Desktop.
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
10.times do |num| | |
Post.create(title: "Ruby is Awesome #{num}", body: 'Indeed it is') do |post| | |
5.times { Comment.create(body: "Comment #{num}", post: post) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment