Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 8, 2014 13:04
Show Gist options
  • Save axilaris/9430296 to your computer and use it in GitHub Desktop.
Save axilaris/9430296 to your computer and use it in GitHub Desktop.
puts "start"
user_list = [
["[email protected]", "$2a$10$dafuCz9ZJQLfbm3PZhrw0.mg1l5TpRjoq7xmPUbVmOeHSPcW7JLqq",
"Test","Me","0101111111",1]
]
user_list.each do |email, encrypted_password,
firstname, lastname, phone_mobile,
activated, country_id|
puts "#{email}"
User.create(email: email,
encrypted_password: encrypted_password,
firstname: firstname,
lastname: lastname,
phone_mobile: phone_mobile,
country_id: country_id)
end
puts "finish"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment