This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CAPTURE NEW: rails db:restore_from_production\[capture\] | |
#DOWNLOAD LATEST: rails db:restore_from_production\[download\] | |
#RESTORE: rails db:restore_from_production | |
#[HEROKU_APP_NAME] = Name of your heroku app. | |
#[NUMBER_OF_CORES] = Number of concurrent jobs to run for pg_restore. | |
namespace :db do | |
desc 'Pull down the latest backup from Heroku and rebuild your local database with it.' | |
task :restore_from_production, [:process] => :environment do |task, args| |
OlderNewer