Sha256: 9d7bf45f56f20243a4d0a99da0ade1cd0a0b8e31bb9e79c6bba297bd191dc096
Contents?: true
Size: 570 Bytes
Versions: 13
Compression:
Stored size: 570 Bytes
Contents
Capistrano::Configuration.instance.load do require_settings :current_path after "deploy:upgrade_database", "database:migrate" after "deploy:upgrade_database", "database:seed" namespace :database do desc "Migrate the database" task :migrate, roles: :db, on_no_matching_servers: :continue do run "cd #{current_path}; foreman run bundle exec rake db:migrate" end desc "Seed the database" task :seed, roles: :db, on_no_matching_servers: :continue do run "cd #{current_path}; foreman run bundle exec rake db:seed" end end end
Version data entries
13 entries across 13 versions & 1 rubygems