How to Seed Your Rails Database with Faker by@adebola
1,106 reads
1,106 reads

How to Seed Your Rails Database with Faker

by Adebola Adeniran2mJune 28th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How to Seed Your Ruby-on-Rails Database with Faker. Faker is a way to generate users that have tickets and also have comments without having to manually type in a value for each field. The Faker attributes you can use are all available from the faker GitHub page. The faker gem is required to seed the database and create Users using fake data from the Faker gem. The seed seed is used to generate a random number between 1 and 20 to test your application.

People Mentioned

Mention Thumbnail
featured image - How to Seed Your Rails Database with Faker
Adebola Adeniran HackerNoon profile picture
Adebola Adeniran

Adebola Adeniran

@adebola

RoR and JavaScript Engineer. Chief of Staff @Moni.Africa

About @adebola
LEARN MORE ABOUT @ADEBOLA'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Adebola Adeniran HackerNoon profile picture
Adebola Adeniran@adebola
RoR and JavaScript Engineer. Chief of Staff @Moni.Africa

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!