Skip to content

Instantly share code, notes, and snippets.

@matugm
Created July 14, 2015 02:43
Show Gist options
  • Save matugm/67fabc77a14b97107968 to your computer and use it in GitHub Desktop.
Save matugm/67fabc77a14b97107968 to your computer and use it in GitHub Desktop.
require 'faker'
20.times do
post = Post.create!(title: Faker::Lorem.word, body: Faker::Lorem.paragraph)
puts "Created #{post.title}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment