Skip to content

Instantly share code, notes, and snippets.

@danahern
Created October 23, 2008 23:23
Show Gist options
  • Save danahern/19268 to your computer and use it in GitHub Desktop.
Save danahern/19268 to your computer and use it in GitHub Desktop.
1) We'll need 1000 fake dealerships created with 1000 fake users
Dealerships can all belong to a single corporation, or create their own corporation whichever is easier.
Tables:
dealerships
users
2) The imported dealership log for each dealership needs to be created.
Table:
imported_dealership_logs
3) Sanitized Dealership Listings should be created for the imported dealership log
When creating the sanitized listings the dealership_ fields should match up with the imported_dealership_log record.
All fields should be filled out
photo_url should be composed of comma joined string with a random number (1-20) of this string "http://beta.upillar.com/cars_movie_picture.jpg"
vin should be generated by randomly selecting a record from vin_patterns and then replacing the stars in the vin_pattern column (*) with alphanumeric characters.
Table:
sanitized_dealership_listings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment