【发布时间】:2010-11-13 22:01:02
【问题描述】:
rake 0.8.7,rails/activerecord 2.3.3
rake db 的输出:迁移:
== CreateProducts:迁移 =========================================== ======= -- create_table(:products) -> 0.0017 秒 == CreateProducts:迁移(0.0019s)========================================
版本号(在本例中为 20090724013528)不应该出现在迁移名称之前吗?
【问题讨论】:
-
为了进一步澄清,Agile Web Development with Rails 第三版中显示的 rake db:migrate 的输出确实包含版本号:== 20080601000001 CreateProducts: migrating ======== ================ -- create_table(:products) -> 0.0027s == 20080601000001 CreateProducts: 迁移 (0.0028s) ============= == 我只是想弄清楚命令的输出是否已更改或是否存在其他问题。