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 trialJoseph Grossheim
4,924 PointsProblem Generating User Model
I accidentally deleted the migration file that creates the 'user' tables from treebook/db/migrations. I tried to regenerate it and for some reason it is not being created. Any thoughts on what is going on and how to fix it? Thanks in advance.
3 Answers
Björn Steneram
5,523 PointsAre you using Devise? Isnt it the Devise generator that generates the migration file for Devise?
Joseph Grossheim
4,924 Pointsthat's correct, it did create the migration file, but I deleted it by accident. When I tried to recreate it, it is not creating the new migration file. I assume that the table is still in the database, which is what is causing the problem (though i'm only guessing).
Björn Steneram
5,523 PointsYes the table is still there, and if you create a new migration and run it you will end up with a error saying that the table already exists.