全栈工程师17 出错

SQLite3::SQLException: table "orders" already exists: CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total" integer DEFAULT 0, "billing_name" varchar, "billing_address" varchar, "shipping_anme" varchar, "shipping_address" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)

git回到上一个分支,重做一次,发现数据库已经有这个表了

Comments

comments powered by Disqus