小编lui*_*sta的帖子

应用的迁移条目不在schema_migrations表上显示

我在heroku上运行了一个应用程序,但schema_migrations表存在问题.

上次迁移更改存在于db/schema.rb文件中,但schema_migrations表中没有此迁移的条目.

因此,在运行时,rake db:version我获得了与上次迁移之前执行的迁移相对应的编号.

我相信我应该在schema_migrations桌面上为此迁移添加一个条目,但我不知道如何在不影响我的数据库日期和远程onoku的情况下执行此操作.

migration heroku schema-migration ruby-on-rails-3

3
推荐指数
1
解决办法
1073
查看次数