activerecord-import breaking changes
activerecord-import 3.0.0 (October 17, 2026) is its newest release with breaking changes, 7 of them. The first: activerecord-import 3.0.0 requires Ruby 3.1 or later. Every breaking API change we have recorded in activerecord-import on RubyGems: 20 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.0.1. Source repository
Its 3.0.0 release requires Ruby 3.1 or later. Ruby end of life dates.
- From 2.0.0 to 3.0.0: 7 breaking changes in 1 version.
- From 0.12.0 to 3.0.0: 18 breaking changes in 9 versions.
activerecord-import 3.0.0 breaking changes
- Behavior changed
Ruby versions before 3.1 and ActiveRecord versions before 6.1 are no longer supported. Upgrade Ruby and ActiveRecord before upgrading this gem. github.com - Behavior changed
On MariaDB 10.5+ imports now return ids and results, and affected_rows is nil unless no_returning: true is passed. github.com - Behavior changed
Rows without a value for a database-filled column now get the database default instead of NULL on PostgreSQL and MySQL/MariaDB. SQLite now raises ArgumentError for such mixed imports. github.com - Behavior changed
Existing records assigned to a new parent are now imported and linked; without on_duplicate_key_update this raises a duplicate key error. github.com - Behavior changed
columns: :all
Imports with columns: :all no longer update created_at or created_on when timestamps are recorded on create. github.com - Behavior changed
on_duplicate_key_update: :all
Imports with on_duplicate_key_update: :all no longer update created_at or created_on when timestamps are recorded on create. github.com - Behavior changed
synchronize
Importing with synchronize now keeps the synchronized models' previous_changes instead of clearing them. github.com
activerecord-import 2.0.0 breaking changes
- Behavior changed
recursive_on_duplicate_key_update
The recursive_on_duplicate_key_update option now looks up options by the association name rather than the associated table name. This only affects associations using the class_name: option; update those hash keys to the association name. github.com
activerecord-import 1.0.0 breaking changes
- Default changed
:on_duplicate_key_update
MySQL imports no longer update timestamp columns on duplicate key by default. Users who want that behavior must now enable :on_duplicate_key_update explicitly. github.com
activerecord-import 0.23.0 breaking changes
- Renamed
import
The import method is now named bulk_import, and import remains available as an alias, so existing calls should keep working. github.com - Behavior changed
When a duplicate key update occurs during import, lock_version is now incremented, so code relying on the previous lock_version value may behave differently. github.com
activerecord-import 0.21.0 breaking changes
- Behavior changed
Importing an array of hashes now raises an ArgumentError if the hash objects do not all have the same keys. Make sure every hash in the array has the same keys before importing. github.com
activerecord-import 0.18.0 breaking changes
- Behavior changed
Uniqueness validation is no longer run when validating models during import, because duplicates within a batch cannot be detected. Code that relies on it must check for duplicates another way. github.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
activerecord-import 0.17.0 breaking changes
- Removed
SQLite recursive imports are no longer supported in this release. Code that relies on recursive imports with SQLite must change its approach. github.com
activerecord-import 0.15.0 breaking changes
- Behavior changed
on_duplicate_key_update
When no conflict_target or conflict_name is given or can be determined for on_duplicate_key_update on PostgreSQL, an ArgumentError is now raised. Pass a conflict target explicitly. github.com
activerecord-import 0.14.0 breaking changes
- Removed
ActiveRecord 3.1 is no longer supported, so apps on that version must upgrade ActiveRecord before using this release. github.com - Behavior changed
Imports of models with polymorphic associations skip the :type column now, so code that expected it to be imported must change. github.com
And 1 more in this version.
activerecord-import 0.12.0 breaking changes
- Removed
Support for the mysql gem/adapter has been removed because it is abandoned. Switch to the mysql2 gem/adapter. github.com - Removed
Support for the em-synchrony project has been removed because the project appears abandoned. Code relying on it must change. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.