开发者

How can I seamlessly handle migrations in production databases during deployment in Rails?

Is it standard practice to put db:migrate in my capistrano task, maybe before updating the code? I don't want to forget to add a column to production and get errors so I feel like there should be a seamless way to do this. Is there anything wrong wit开发者_如何学JAVAh doing it the way I mentioned? ...just wondering what the standard practice is here


Do cap -T and read about cap:deploy:migrate and cap:deploy:migrations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜