Unit 1, Lesson 1: Authentication 3/12

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
The directions say:

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

I haven;t done Rails in years and I forgot how to do this. Any help?

<In what way does your code behave incorrectly? Include ALL error messages.>

Hi @popmatrix,

The course should have told you how to do this, but here’s how you’d do it:

t.TYPE :COLUMN_NAME

I tried "db/migrate.STRING :first_name " and it didn’t work. What am I
doing wrong?

@popmatrix

  1. Use t instead of db/migrate right there
  2. Lowercase string

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.