7
10

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.

migrateの履歴を見る方法

Last updated at Posted at 2016-01-23

modelから作らないと行けないのに間違ってmigrateしてしまった時とか履歴をみたいのにその方法が思い出せない事がありました。
そして、調べてみると意外と参照ページを全部読む必要があったりして面倒だったので、覚書です。
[参照元]
http://railsdoc.com/rake

###migreteの履歴を表示するコマンド
rake db:migrate:status

覚えとけよって話ですが、たまにしかしないので、また忘れた時のためにw

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?