当前位置: 动力学知识库 > 问答 > 编程问答 >

mysql - Rails 3 - how to update my migrations by DB schema

问题描述:

I updated my DB schema a I would need to update a migrations by this schema.

Exist any elegant way to do it or I have to update my migrations manually?

Thank you

网友答案:

You don't generate migrations from the schema.rb file. Instead, use rails generate migration, or generate them as part of your models.

分享给朋友:
您可能感兴趣的文章:
随机阅读: