我在heroku上运行了一个应用程序,但schema_migrations表存在问题.
上次迁移更改存在于db/schema.rb文件中,但schema_migrations表中没有此迁移的条目.
db/schema.rb
schema_migrations
因此,在运行时,rake db:version我获得了与上次迁移之前执行的迁移相对应的编号.
rake db:version
我相信我应该在schema_migrations桌面上为此迁移添加一个条目,但我不知道如何在不影响我的数据库日期和远程onoku的情况下执行此操作.
migration heroku schema-migration ruby-on-rails-3
heroku ×1
migration ×1
ruby-on-rails-3 ×1
schema-migration ×1