How do you rename a migration?

use the git mv command to have git automatically track renaming.
How do I create a belongs to relationship where the foreign key has a different name?

Analogy: An activerecord relationship is a lot like a real relationship. I am both Kori's sister and a devbootcamp student. When talking about my relationship with kori, it make more sense to say Kori's sister instead of saying kori has a dev bootcamp student for a sister.

See this source code!
How do I rename an activerecord one-to-many relationship?

Kori's explanation: in order to set up relationshops, activerecord relies on two conventions:
that the foriegn key is named user_id, and that the model, i.e. the classname, is named Users. If you decide to change the foriegn key name, you have to tell the User what foreign key to look for and Post what classname to look for.

Analogy: Activerecord associations are like your locker.  If you decide to put your backpack in a place that is not your locker, you will have to remind yourself where you put your backpack, and you have to write your name on the backpack so that everything knows that the backback belongs to you.
How do I have a complex association with the least amount of renaming?

This association was tricky because there were two things that User.posts
could mean.  User.posts could mean the posts a user has written, or a post
the user had commented on.  As Ryan said as he helped me fix this bug, one
or the other needs to be renamed. I chose to rename the one to many
relationship because it involved changing only one test instead of nearly
a dozen tests.

Analogy: renaming an activerecord association is like creating a nickname for something
to make it easier to remember. For example, it is much easier to remember that a user
has written many posts instead of a user having many posts, so I renamed it to user.writings
instead of user.posts.
How do I see what activerecord is sticking in the database?

Use the logger!  I inserted it into comments for later use. Ryan
used it to help me debug my understanding of associations in the last
commit. It prints out what postgres is doing when it inserts records
into the database, so whohoo! I have a new debugging tool!  I feel like
I have leveled up in wizardry.
Reorganized tests to make them easier to find

model tests are in the model directory
association tests are in the associations directory
basic crud methos are in the crud file

I numbered them in the order that you ought to create things
How do I allow a user to login?

This code was written based on the following login user story;

1. On the home page, click on login.  This takes you to the login page.
2. On the login page, enter e-mail and passsword, and click login. This takes you to the home page with the title bar changed to show your name and a logout link

The login flow is like ali baba's cave demanding a password before it will let you enter and view the marvelous things.
How do I make it easy to test the login flow?

Add a seeds file.

A seeds file is like a person putting fake things on their resume to make the resume look more attractive than it actually is.
How do I log out a user?

Analogy: logging out a user is like locking up a building as you leave it. You no longer can get in unless you unlock it again...and neither can anyone else.
How do I test to see if a user has a name column?

Like so.
How do I sign up a new user?

The new user functionality was built out using the following flow:

1. On the homepage, click on sign up.
 - takes you the the sign-up page

2. On the sign-up page, enter username, email an password. Click sign-up.
   -takes you to the index page. The tile bar changed to show your name and the logout link
How do you go back to the home page?

On the nav bar, click on tara news. This takes you to the main page.
How do I go to the user profile?

Here is the Nav bar user profile flow:

On the navbar, click the username. Takes you to the user profile
How do I render the index page?

Analogy: the index is like a poster or an advertisement. It is the first impression someone will have of your website. Take care that their first impression is not their last!
How do I render a user's profile?

I forgot to add this to the navbar commit.  Oops.

Analogy: This is a placeholder page until I get around to implementing it.
How do I go to a post from the homepage?

Post flow:
On the homepage, click on the title.  It takes you to the post page.

The post page is a placeholder for now.