开发者

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

开发者 https://www.devze.com 2022-12-12 13:19 出处:网络
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 se

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

精彩评论

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