Sha256: d94510e0bfd904138fd334691f544db6191a8eb56c86833d32588c7d481eb795

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

namespace :deploy do

  desc 'Runs rake db:migrate if migrations are set'
  task :migrate do
    on primary :db do
      within release_path do
        execute :rake, "db:migrate RAILS_ENV=#{fetch(:stage)}"
      end
    end
  end

  before 'deploy:finalize', 'deploy:migrate'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-rails-0.0.4 lib/capistrano/tasks/migrations.rake
capistrano-rails-0.0.3 lib/capistrano/tasks/migrations.rake
capistrano-rails-0.0.2 lib/capistrano/tasks/migrations.rake