views:

35

answers:

1

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 with doing it the way I mentioned? ...just wondering what the standard practice is here

+2  A: 

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

Ben
:migrations => "deploy and then run migrations", while :migrate => "run migrations on the current deployment"
wesgarrison