Stuck on 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

Done this but still getting an error saying colums do not exist
Code in Migration file:
.class CreateAlbums < ActiveRecord::Migration
def change
create_table :albums do |t|
t.string :title
t.string :image
t.string :first_name
t.string :last_name
t.string :email
t.string :password_digest

Are you typing in the right file? The code has to be CreateUsers instead of CreateAlbums. Find the file in db/migrate, there should be three files, if there’s only two files for album and photos, reset the exercise, i had to do the same thing! Exercise might have a bug!

1 Like

Yes Sorry, My Mistake

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