我不知道,但由于某种原因,我的 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。
但日志文件显示迁移在创建照片时中止。
我不知道如何解决这个问题。有人可以帮忙吗?
PS 我无法通过 ssh 登录。由于某种原因,它已关闭。所以我在 linode 的 lish 登录,因此在日志文件中查找错误。