18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

メモ - 本番環境でrake db:migrateしたらエラー(relation テーブル名 does not exit)出た。

Last updated at Posted at 2014-11-12

本番環境でrake db:migrate RAILS_ENV=productionとしたらActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation テーブル名 does not existとエラーが。

rake db:schema:load RAILS_ENV=production

とした後rake db:migrate RAILS_ENV=productionでなんか成功。

参考

Rake - Railsドキュメント

18
14
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?