PgDump

a tool to dump data and restore data by pg_dump and pg_restore in rails.

Installation

Add this line to your application's Gemfile:

gem 'pg_dump'
gem 'pg_dump', github: 'ziyouchutuwenwu/pg_dump', branch: 'master'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pg_dump

Usage

rake pg:dump
rake pg:restore

Tips

if rails complains error info, just comment

gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'