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

  1. 0.6.0
    1. source

      1. 0.6.0 source July 08, 2026 (17.5 KB)
  2. 0.5.0
    1. source

      1. 0.5.0 source July 07, 2026 (16 KB)
  3. 0.4.0
    1. source

      1. 0.4.0 source July 06, 2026 (15.5 KB)
  4. 0.3.0
    1. source

      1. 0.3.0 source July 06, 2026 (15.5 KB)
  5. 0.2.0
    1. source

      1. 0.2.0 source July 06, 2026 (14 KB)
Show all versions (6 total)

Pushed by

GitHub

SHA 256 checksum

Provenance