Commit 2ac8eb27

mo khan <mo@mokhan.ca>
2013-06-16 15:57:06
add alternate way to restore db suggested by heroku docs
1 parent c27a85a
Changed files (1)
lib
lib/tasks/database.rake
@@ -5,6 +5,7 @@ namespace :db do
     destination_db = config[Rails.env]["database"]
     puts "restoring to #{destination_db}"
     sh "psql #{destination_db} < #{dumpfile}"
+    #sh "pg_restore --verbose --clean --no-acl --no-owner -h localhost -U #{config[Rails.env]["username"]} -d #{destination_db} #{dumpfile}"
   end
   task :backup do
     sh "cap production backup_db"