Sha256: 24198b919e3b0012bf71b130d1d9993fbd9de828a150e449867da3d6fa98812e

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

namespace :deploy do
  namespace :migrate do
    desc 'Runs rake db:data:migrate if migrations are set'
    task :data => [:set_rails_env] do
      on primary fetch(:migration_role) do
        within release_path do
          with rails_env: fetch(:rails_env) do
            migrate_env = fetch(:migrate_env, "")
            execute :rake, "db:data:migrate #{migrate_env} "
          end
        end
      end
    end
  end

  after 'deploy:migrate', 'deploy:migrate:data'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
imigrate-0.9.3 lib/tasks/capistrano.rake
imigrate-0.9.2 lib/tasks/capistrano.rake
imigrate-0.9.1 lib/tasks/capistrano.rake
imigrate-0.9.0 lib/tasks/capistrano.rake