1
0

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 3 years have passed since last update.

RailsでとにかくDBをリセットしたい場合(メモ)

Last updated at Posted at 2021-03-21

migrationファイル内を変更している時、いろいろやりすぎて一度DB関連をすべてリセットしたい時のコマンド

rails db:migrate:reset

このコマンドを実行することでデータベースを作り直すことができる。

(流れ・動き)

①データベースを削除

②データベース作成

③マイグレーション実行

この流れで実行されている。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?