Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Created January 30, 2014 07:23
Show Gist options
  • Save mazikwyry/8704071 to your computer and use it in GitHub Desktop.
Save mazikwyry/8704071 to your computer and use it in GitHub Desktop.
Faker script
reload!
Profile.find(:all).each do |u|
u.update_attribute(:first_name, Faker::Name.first_name+" "+u.id.to_s)
u.update_attribute(:last_name, Faker::Name.last_name)
end
gem install faker
@mazikwyry
Copy link
Author

termial command first :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment