我最近将Devise
and添加CanCan
到我的Rails 3.2.3
应用程序中,并且需要运行rake db:migrate
才能使它们正常工作。我有一个我已经创建的链接的迁移文件,它与我运行时发生冲突rake db:migrate
== CreateLinks: migrating ====================================================
-- create_table(:links)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: table "links" already exists: CREATE TABLE "links" ("id"INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar(255), "description" var
char(255), "created_at" datetime NOT NULL, "points" integer, "updated_at" dateti
me NOT NULL)
我尝试跑步rake db:migrate:reset
,但这似乎对我的情况没有任何帮助。我仍然无法为我的新 gem 运行数据库迁移。我怎样才能解决这个问题?我可以以某种方式省略链接迁移吗?