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

Ruby on Rails マイグレーションを取り消す

Posted at

最新のマイグレーションを取り消す

最新のマイグレーションを取り消すコマンドは
rails db:rollback

特定のマイグレーションを取り消す

特定のマイグレーションを取り消す場合は
rails db:migrate:status
で取り消したいマイグレーションファイルのMigration IDを確認し
rails db:migrate:down VERSION = 取り消したいマイグレーションファイルのMigration ID
を実行する。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?