Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们已经开发了一年的应用程序,并且在迁移过程中出现了一些错误。有没有办法将它们编译成一个文件,这样我们就可以消除任何错误等,而无需对数百个单独的文件进行排序?或者我们可以重置迁移,以便现在运行的版本是新安装的第一个版本?
迁移已经“编译”到schema.rb位于db您的 rails 应用程序文件夹中的一个文件调用中。
schema.rb
db
您可以从以下 rake 任务加载架构:
rake db:schema:load