Stuck on 3, User Migration


#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

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.timestamps
t.string :first_name
t.string :last_name
t.string :email
t.string :password_digest
end
end
end


#2

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!


#3

Yes Sorry, My Mistake


#4

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