Rails 4 in action 자습서에서 작성한 레일 앱을 배포하려고합니다. 나는 성공적으로 Heroku가 아니라 언제 실행 레이크 DB를 푸시했습니다 :이 오류를 받고 있어요 마이그레이션 :PG :: Undefinedtable : ERROR : 실행할 때 rake db : migrate on Heroku
heroku run rake db:migrate
Running rake db:migrate on ⬢ fast-lowlands-66439... up, run.6711 (Free)
ActiveRecord::SchemaMigration Load (10.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateStates (20161123222713)
(2.5ms) BEGIN
== 20161123222713 CreateStates: migrating =====================================
-- create_table(:states)
-- add_reference(:tickets, :state, {:index=>true, :foreign_key=>true})
(1.4ms) ALTER TABLE "tickets" ADD "state_id" integer
(9.7ms) CREATE INDEX "index_tickets_on_state_id" ON "tickets" ("state_id")
(4.6ms) ALTER TABLE "tickets" ADD CONSTRAINT "fk_rails_fc553dc329"
FOREIGN KEY ("state_id")
REFERENCES "states" ("id")
(0.6ms) ROLLBACK
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedTable: ERROR: relation "states" does not exist
: ALTER TABLE "tickets" ADD CONSTRAINT "fk_rails_fc553dc329"
FOREIGN KEY ("state_id")
REFERENCES "states" ("id")
응용 로컬로 작동하고 테이블이 존재한다.
추가 파일 게시가 필요한 경우 알려주십시오. 언제나 도움을 주셔서 감사합니다.