[英]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:drop
, db:create
, db:schema:load
但是没有创建表。
您将要运行迁移文件:
bin/rails db:migrate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.