我之前创建了一个 work 的脚手架自动创建的数据库 works 表。 现在我已经 destroy 掉了那个 Work 脚手架,然后重新建了一个同名但是字段名不同的 works 表,迁移的时候说:
➜ rake db:migrate
== CreateWorks: migrating ====================================================
-- create_table(:works)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: table "works" already exists: CREATE TABLE "works" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
我如何删除之前的 works 表?