3

我正在开发现有的 Rails 应用程序,进行更改并更新它。

如何检查其中是否有未运行的 rake db:migrate?有直接命令吗?

4

2 回答 2

5

Running this:

rake db:migrate:status

Would give you this:

   up     20130415141113  Rename coupon to discount coupon
   up     20130416144722  Create ratings
  down    20130419102623  Add published to product
  down    20130419124429  Add attachment photo to users

Anything that is 'down' has NOT been migrated.

于 2013-04-20T07:47:03.357 回答
1
rake db:migrate:status

会给你这些信息

于 2013-04-20T07:03:36.490 回答