Reputation: 48443
Is there any way to run a single migration through Capistrano?
I know about
deploy:migrate
deploy:migrations
But is there something like
cap staging deploy:migrate:up VERSION=version_number
?
Thank you
Upvotes: 0
Views: 160
Reputation: 654
I just created a gem for this purpose: capistrano-rails-db (Github)
For example, you can run a specific migration up as follows:
cap staging deploy:db:migrate:up VERSION=version_number
Upvotes: 1