-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'