Last active
December 31, 2015 05:19
-
-
Save randalmaile/7940522 to your computer and use it in GitHub Desktop.
Bloccit - Seed Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. At work, I've heard developers mention "hydration." Is this the process of seeding data in a table? | |
2. How much and how extensive is the seed data. How can I control how much data is populated? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. In this checkpoint, you'll install a Gem named Faker to help generate development data automatically. | |
2. Run: rake db:seed to seed the database w/ some random data. | |
3. Look at some of your data by running "rails c" and: | |
a. p = Post.find(3) | |
b. p.comments.count | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
find
.