-1
我运行heroku运行db:migrate后,出现此错误。 。该应用程序在开发中运行良好。我也在本网站上做了一些研究,并尝试了几种解决方案,似乎无法正常工作。有人帮我弄清楚我该如何解决这个问题?heroku迁移问题
== CreatePins: migrating =====================================================
-- create_table(:pins)
NOTICE: CREATE TABLE will create implicit sequence "pins_id_seq1" for serial column "pins.id"
rake aborted!
An error has occurred, this and all later migrations canceled:
PG::Error: ERROR: relation "pins" already exists
: CREATE TABLE "pins" ("id" serial primary key, "description" character varying(255), "created_at" timestamp N
OT NULL, "updated_at" timestamp NOT NULL) /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_re
cord/connection_adapters/postgresql_adapter.rb:650:in `exec'