RubyGems Navigation menu

database-cloner-rails 1.1.1

database-cloner-rails provides two rake tasks for moving database records between Rails environments. `rake database:download` dumps all ActiveRecord model records to plain Ruby files (Model.create(...) statements). `rake database:upload` replays those files to restore records in the target database. Useful for seeding a staging environment from production data, creating snapshots before destructive migrations, or sharing realistic test data across a team. Supports optional MODELS filtering: `rake database:download MODELS=users,posts` to dump only specific tables. The dump directory is created automatically.

Gemfile:
=

install:
=

Versions:

  1. 1.1.1 May 31, 2026 (7.5 KB)
  2. 1.1.0 May 31, 2026 (6.5 KB)
  3. 1.0.1 May 31, 2026 (6.5 KB)
  4. 1.0 December 11, 2014 (5 KB)

Runtime Dependencies (1):

rails >= 5.0

Development Dependencies (4):

activerecord >= 5.0
activesupport >= 5.0
rspec ~> 3.12
sqlite3 ~> 1.7

Owners:

Pushed by:

Authors:

  • Abhishek Sharma

SHA 256 checksum:

=

Total downloads 4,126

For this version 140

Version Released:

License:

MIT

Required Ruby Version: >= 2.7

Links: