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:
You have 1 pending migrations:
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:
== 1 CreateStories: migrating =================================================
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?