Results 1 to 5 of 5
Sep 25, 2008, 12:21 #1
- Join Date
- Sep 2008
- 0 Post(s)
- 0 Thread(s)
RoR 2: Chapter 6 pg 183 - rake test:units
When I attempt to tun the test, I do not get expected results. Here is what I get:
C:\InstantRails-2.0-win\rails_apps\shovell>rake test:units (in C:/InstantRails-2.0-win/rails_apps/shovell) You have 1 pending migrations: 1 CreateStories Run `rake db:migrate` to update your database then try again.
That being the case, I attempt to run rake db:migrate, but I get this error:
C:\InstantRails-2.0-win\rails_apps\shovell>rake db:migrate (in C:/InstantRails-2.0-win/rails_apps/shovell) == 1 CreateStories: migrating ================================================= -- create_table(:stories) rake aborted! SQLite3::SQLException: table stories already exists: CREATE TABLE stories ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT NULL, "l ink" varchar(255) DEFAULT NULL, "created_at" datetime DEFAULT NULL, "updated_at" datetime DEFAULT NULL) (See full trace by running task with --trace)
Any ideas on why I have a pending migration that I can not remove or what I need to do?