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.
Required Ruby Version
>= 2.7
Authors
Abhishek Sharma
Versions
-
1.1.1
-
source
- 1.1.1 source May 31, 2026 (7.5 KB)
-
-
1.1.0
-
source
- 1.1.0 source May 31, 2026 (6.5 KB)
-
-
1.0.1
-
source
- 1.0.1 source May 31, 2026 (6.5 KB)
-
-
1.0
-
source
- 1.0 source December 11, 2014 (5 KB)
-