activerecord-duplicator copies an ActiveRecord record and its associated rows (has_many, has_one, belongs_to, has_many :through) in one call. It rewires foreign keys through an internal id map, bypasses callbacks by using insert_all!, and lets you plug in per-model handlers for records that need custom logic. Composite primary keys (Rails 7.1+) are supported.
Required Ruby Version
>= 3.3.0
Authors
SmartHR
Versions
- 0.6.0 July 08, 2026 (17.5 KB)
- 0.5.0 July 07, 2026 (16 KB)
- 0.4.0 July 06, 2026 (15.5 KB)
- 0.3.0 July 06, 2026 (15.5 KB)
- 0.2.0 July 06, 2026 (14 KB)
Pushed by
SHA 256 checksum
Provenance
Source Commit
Build File