3. User Migration

Open the migration file in db/migrate/ for the users table and add:

a string column called first_name
a string column called last_name
a string column called email
a string column called password_digest

How do you open that and what is what is a string column?

First you go to db, then migrate, then click the table you want.

You’ll add a column like this:

def change
    create_table :USERS do |t|
      t.string :COLUMNNAME

Whoever wrote this should’ve thrown a SyntaxError. I had tabs between the t.string and “:COLUMN”

2 posts were split to a new topic: How do I “Run a Migration to Update the Database.”

Hey I did the same thing t.string :COLUMNNAMEthat needed to be added and I still get an error from the system, which I know I added everything correctly on my end. There is an error with the system.