Skip to content

Commit

Permalink
Use migration command to construct log message (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
harimohanraj89 authored Jan 28, 2022
1 parent 082255a commit 6c8603f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace :deploy do
if conditionally_migrate && test(:diff, "-qr #{release_path}/db #{current_path}/db")
info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db)'
else
info '[deploy:migrate] Run `rake db:migrate`'
info "[deploy:migrate] Run `rake #{fetch(:migration_command)}`"
# NOTE: We access instance variable since the accessor was only added recently. Once capistrano-rails depends on rake 11+, we can revert the following line
invoke :'deploy:migrating' unless Rake::Task[:'deploy:migrating'].instance_variable_get(:@already_invoked)
end
Expand Down

0 comments on commit 6c8603f

Please sign in to comment.