Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created October 29, 2010 16:22
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 timuruski/653844 to your computer and use it in GitHub Desktop.
Save timuruski/653844 to your computer and use it in GitHub Desktop.
def create_random_person
slug = $person_count.inc!
name = random_name
puts "Creating #{name} - #{slug}"
person = Person.create!( :slug => slug, :name => name, :TMP => true )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment