我正在尝试运行db:migrate。但是,这会失败,因为其中一个迁移正在尝试更新的某个表不存在。我搜索了代码库,在db/schema.rb中创建了这个表。
如何在db:migrate之前运行schema.rb??
发布于 2012-01-12 00:57:23
使用架构加载任务:
rake db:schema:load来自rake -T (删节版):
rake db:schema:dump # Create db/schema.rb file usable with any AR-supported DB
rake db:schema:load # Load schema.rb file into DBhttps://stackoverflow.com/questions/8823252
复制相似问题