Ruby Gems: Seeding your database with Faker

Image for post
Image for post
Photo by Matt Briney on Unsplash
Image for post
Image for post
Faker Gem on https://rubygems.org/
Image for post
Image for post
Input Faker Gem into your Gemfile
Image for post
Image for post
Require Faker in your environment folder
Image for post
Image for post
Gem Installation Complete
Image for post
Image for post
Examples of data under the Faker::Beer category https://github.com/faker-ruby/faker
Image for post
Image for post
Example Seeds.rb file

Written by

Software Engineer — Full Stack, JavaScript, ReactJS, Ruby on Rails, OO Programming (https://www.matthewsedlacek.com/)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store