简体   繁体   English

将现有迁移添加到schema.rb

[英]Add existing migration into schema.rb

I am working on a development project. 我正在开发一个项目。 My schema.rb does not contain a table. 我的schema.rb不包含表。 I can see that there is a migration for the table. 我可以看到该表有一个迁移。

How do I add the existing migration into my schema? 如何将现有迁移添加到我的模式中? I have used db:drop , db:create , db:schema:load but that did not create the table. 我使用了db:dropdb:createdb:schema:load但是没有创建表。

您将要运行迁移文件:

bin/rails db:migrate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM