Skip to content

Instantly share code, notes, and snippets.

@TeTiRoss
Last active January 17, 2019 08:19
Show Gist options
  • Save TeTiRoss/1aab0275183c931a65089d1aea1900ed to your computer and use it in GitHub Desktop.
Save TeTiRoss/1aab0275183c931a65089d1aea1900ed to your computer and use it in GitHub Desktop.
require 'csv'
CSV.foreach(filename, :headers => true) do |row|
User.create!(row.to_hash)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment