Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Peter Sidoriak
980 PointsMigrating Error in Migrating statuses
I think I understand the error, but I don't know how to fix it. I am following along with "Creating an Authentication System/Migrating Statuses" around the 1:50 Mark.
Thanks!
rake db:migrate
== AddDeviseToUsers: migrating ===============================================
-- change_table(:users)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: duplicate column name: email: ALTER TABLE "users" ADD "email" varcha r(255) DEFAULT '' NOT NULL
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
2 Answers
Derrick Mull
18,518 PointsWhat is in your migration file?
Peter Sidoriak
980 PointsGood Question... I'm new to this. I compared my db migrate files to the lesson files and found an extra file. I think it was conflicting. I must have forgotten to delete it.
Thanks for the help! Now I'm back on track :)
-Peter