Skip to content

Instantly share code, notes, and snippets.

@zentetsukenz
Created November 21, 2015 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zentetsukenz/9102706ab8735d9ad65f to your computer and use it in GitHub Desktop.
Save zentetsukenz/9102706ab8735d9ad65f to your computer and use it in GitHub Desktop.
ActiveRecord::Base.transaction do
100.times do |i|
Item.create({
name: "item #{i + 1}"
})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment