June 2024
Intermediate to advanced
456 pages
11h 34m
English
The Rideshare users table is polymorphic, storing rows representing Driver and Rider class instances. Rideshare has data generator scripts that populate records with realistic-looking data from the Faker gem.[65]
In lieu of a large pre-made dump file to download, you’ll start from the normal data generators in Rideshare, which create around 20,000 rows, and then pump that up by generating a lot more data.
To run data generators, run the following command in your terminal from the Rideshare directory:
| | bin/rails data_generators:generate_all |
This takes a few moments to run, creating around 20,000 records in the users table. While this is a nice amount of data to work with for many ...
Read now
Unlock full access