Rails:执行rake db:migrate时出错

时间:2013-09-02 05:35:56

标签: ruby-on-rails-3 rake

我不知道但是由于某种原因我的rake db:migrate命令正在中止。我跑的时候:

 rake db:migrate >> logfile

然后

 less logfile

我明白了:

==  FixProductsTable: migrating ===============================================
-- rename_column(:products, :meata_description, :meta_description)
[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
==  CreateCkeditorAssets: migrating ===========================================
-- create_table(:ckeditor_assets)
[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
==  FixProductsTable: migrating ===============================================
-- rename_column(:products, :meata_description, :meta_description)
[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
==  RenameColumnHeathFactorToHealthFactorOnProducts: migrating ================
==  RenameColumnHeathFactorToHealthFactorOnProducts: migrated (0.0000s) =======

==  AddColumnCityToProducts: migrating ========================================
-- add_column(:products, :city, :string)
[RailsAdmin] RailsAdmin initialization disabled by default. Pass    SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
==  CreatePhotos: migrating ===================================================
-- create_table(:photos)

我尝试删除照片表,在照片迁移中写了drop_table,但没有发生任何事情。我一直在我的日志文件中获得高于输出。就好像删除照片表/迁移不会影响rake db:migrate。

但是日志文件显示在创建照片时中止了迁移。

我没有得到如何解决这个问题。有人可以帮忙吗?

P.S。我无法通过ssh登录。它由于某种原因而关闭。所以我正在登录linode,因此在logfile中查找错误。

0 个答案:

没有答案