0
0

More than 1 year has passed since last update.

Heroku(PostgreSQL)のDBリセット方法

Posted at

はじめに

プログラミング初学者の@kat_logと申します。

Heroku(PostgreSQL)で間違えたレコードを登録した時など、DBを一旦リセットする方法の共有です。
(学習中のため、自分へのメモ的な意味もあります💦)

結論

下記コマンドの実行で可能です。

heroku pg:reset DATABASE

その後、

heroku run rails db:migrate

にて再びマイグレートできます。

おわりに

お読みいただきありがとうございました。
自分と同じく初学者の参考になれば嬉しいです。
一緒に頑張っていきましょう〜😄

0
0
0

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