Skip to content

Instantly share code, notes, and snippets.

@roblevintennis
Created May 15, 2015 18:20
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 roblevintennis/69e68a5123d38e1f38af to your computer and use it in GitHub Desktop.
Save roblevintennis/69e68a5123d38e1f38af to your computer and use it in GitHub Desktop.
user = User.find(ID_FOUND_IN_USERS_TABLE)
200.times { |n|
w = Workspace.new(:title => 'Workspace-' + n.to_s, :creator_team => 'buyer')
w.creator = user
w.save!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment