Unit 1, Lesson 1: Authentication 3/12


#1



The directions say:

1.
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?


#2

Hi @popmatrix,

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

t.TYPE :COLUMN_NAME

#3

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


#4

@popmatrix

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

#5

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