Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

standout/rails_db_dump_restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gem install rails_db_dump_restore

rake tasks

# Dump database to tmp/database.dump
rake db:dump
# development database dumped to tmp/database.dump

# Replace database with contents of tmp/database.dump
rake db:restore
# development database replaced with contents of tmp/database.dump

capistrano tasks

# Replace local database with a remote one
cap production db:pull
# Dumps production database to remote tmp/database.dump
# Downloads the dumpfile to local tmp/database.dump
# Replaces local database with contents of tmp/database.dump

Add require 'capistrano/rails_db_dump_restore' to your Capfile

Quirks

Only works with postgresql and mysql2 database adapters as of now. You should add support for others.

Dummy

We have a dummy app in another repo that is used for testing out this gem Make sure to clone it beside the gem repo

cd ..
git clone git@github.com:standout/rails_db_dump_restore_dummy
cd rails_db_dump_restore_dummy
bundle
rake dummy

About

Add rake db:dump, rake db:restore and cap db:pull

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy