activerecord breaking changes
Updated December 4, 2026
On this page
Latest version 8.1.4.1. Source repository
Its 6.0.0.beta1 release requires Ruby 2.5.0 or later. Ruby end of life dates.
- From 7.0.0 to 8.0.0: 64 breaking changes in 4 versions.
- From 6.0.0 to 8.0.0: 164 breaking changes in 7 versions.
activerecord 8.0.0 breaking changes
- Removed
MySQL 5.5 is no longer supported; MySQL 5.6.4 or later is required. github.com - Removed
ActiveRecord.ConnectionAdapters.ConnectionPool.connection
The deprecated ConnectionPool#connection method is removed. github.com - Removed
ActiveRecord.ImmutableRelation
The deprecated constant is deleted. github.com - Removed
ActiveSupport.Deprecation.warn
Passing an array of strings to ActiveSupport::Deprecation#warn no longer works. Pass a single string instead. github.com - Removed
ActiveSupport.ProxyObject
The deprecated ActiveSupport::ProxyObject class is removed. github.com - Removed
attr_internal_naming_format
Setting attr_internal_naming_format with a @ prefix is no longer supported. github.com - Removed
cache_dump_filename
cache_dump_filename no longer accepts a database name argument. github.com - Removed
config.active_record.allow_deprecated_singular_associations_name
The config option is removed. github.com - Removed
config.active_record.commit_transaction_on_non_local_return
The config option is removed. github.com - Removed
config.active_record.sqlite3_deprecated_warning
The config option is removed and no longer has any effect. github.com - Removed
config.active_record.warn_on_records_fetched_greater_than
The config option is removed. github.com - Removed
config.read_encrypted_secrets
The config option is removed. github.com - Removed
enum
Defining enum with keyword arguments is no longer supported. github.com - Removed
ENV["SCHEMA_CACHE"]
Setting the SCHEMA_CACHE environment variable is no longer supported. github.com - Removed
Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality
The config option is removed. github.com - Removed
Rails.ConsoleMethods
Extending the Rails console through Rails::ConsoleMethods is no longer supported. github.com - Renamed
SQLite3.Database.busy_timeout
Use busy_handler_timeout= in place of busy_timeout. github.com - Behavior changed
Transactions on the SQLite3 adapter now default to IMMEDIATE mode, which changes locking behavior. github.com - Behavior changed
ActiveSupport.HashWithIndifferentAccess.stringify_keys
Non-symbol keys such as integers are now converted to strings too, so code relying on the old key types will change. github.com - Behavior changed
ActiveSupport.TimeWithZone.inspect
Output of inspect changes to the ISO 8601 style used by Time#inspect. github.com - Behavior changed
db:prepare
Seeds are skipped for non-primary databases unless the seeds config property is set to true. github.com - Behavior changed
EncryptedConfiguration
Keys that cannot respond to to_sym, such as Integer or Float, now raise an error. github.com - Behavior changed
resources
Invalid :only or :except values now raise ArgumentError. github.com - Default changed
ActiveSupport.to_time_preserves_timezone
The default is now :zone instead of true, which was renamed to :offset. github.com - Default changed
Regexp.timeout
Regexp matching now times out after 1 second by default. github.com
activerecord 8.0.0.rc2 breaking changes
- Behavior changed
db:prepare
Seeds are now loaded by db:prepare only for primary database configs unless the new seeds property is set. github.com - Default changed
Regexp.timeout
Regular expressions that run longer than one second now raise a timeout error unless the application changes this setting. github.com
activerecord 8.0.0.rc1 breaking changes
- Removed
Removes finding database adapters not registered with Active Record in activerecord 8.0.0.rc1 github.com - Removed
ActiveRecord.ConnectionAdapters.ConnectionPool.connection
Removes ConnectionPool#connection in activerecord 8.0.0.rc1 github.com - Removed
ActiveSupport.Deprecation.warn
Removes support for passing an array of strings to Deprecation#warn in activerecord 8.0.0.rc1 github.com - Removed
ActiveSupport.ProxyObject
Removes ActiveSupport::ProxyObject in activerecord 8.0.0.rc1 github.com - Removed
attr_internal_naming_format
Removes support for attr_internal_naming_format with a @ prefix in activerecord 8.0.0.rc1 github.com - Removed
cache_dump_filename
Removes passing a database name to cache_dump_filename in activerecord 8.0.0.rc1 github.com - Removed
config.action_controller.allow_deprecated_parameters_hash_equality
Removes the allow_deprecated_parameters_hash_equality config option in activerecord 8.0.0.rc1 github.com - Removed
config.active_job.use_big_decimal_serializer
Removes the use_big_decimal_serializer config option in activerecord 8.0.0.rc1 github.com - Removed
config.active_record.allow_deprecated_singular_associations_name
Removes the allow_deprecated_singular_associations_name config option in activerecord 8.0.0.rc1 github.com - Removed
config.active_record.commit_transaction_on_non_local_return
Removes the commit_transaction_on_non_local_return config option in activerecord 8.0.0.rc1 github.com
And 14 more in this version. Sign up to see every change
activerecord 8.0.0.beta1 breaking changes
- Removed
MySQL 5.5 is no longer supported; use MySQL 5.6.4 or later. github.com - Removed
ActiveRecord.ImmutableRelation
The deprecated constant ActiveRecord::ImmutableRelation has been removed. github.com - Renamed
check_box
The check_box methods are renamed to checkbox; old names remain as aliases. github.com - Renamed
rich_text_area
The rich_text_area methods are renamed to rich_textarea; old names remain as aliases. github.com - Renamed
text_area
The text_area methods are renamed to textarea; old names remain as aliases. github.com - Behavior changed
Transactions on the SQLite3 adapter now default to IMMEDIATE mode, changing their locking behavior. github.com - Behavior changed
ActiveSupport.EncryptedConfiguration
Using a key that does not respond to to_sym, such as an Integer or Float, now raises an error. github.com - Behavior changed
ActiveSupport.TimeWithZone.inspect
TimeWithZone#inspect output changes to ISO 8601 style, matching Time#inspect. github.com - Behavior changed
http_cache_forever
http_cache_forever now marks responses as immutable in the Cache-Control header. github.com - Behavior changed
rails g
Running rails g with an unknown generator now exits with status 1 instead of 0. github.com
And 3 more in this version. Sign up to see every change
activerecord 7.0.0 breaking changes
- Removed
Quoting ActiveRecord::Base objects is no longer supported. github.com - Removed
Type casting ActiveRecord::Base objects to database values is no longer supported. github.com - Removed
Resolving a connection using primary as the connection specification name is no longer supported. github.com - Removed
ActiveRecord.Base.arel_attribute
The deprecated arel_attribute method has been removed. github.com - Removed
ActiveRecord.Base.configurations.default_hash
The deprecated default_hash method on the configurations object has been removed. github.com - Removed
ActiveRecord.Base.configurations.to_h
The deprecated to_h method on the configurations object has been removed. github.com - Removed
ActiveRecord.Base.connection_config
The deprecated connection_config method has been removed. github.com - Removed
ActiveRecord.Base.remove_connection
The deprecated remove_connection method has been removed. github.com - Removed
ActiveRecord.Connection.allowed_index_name_length
The deprecated allowed_index_name_length method has been removed. Stop calling it. github.com - Removed
ActiveRecord.Connection.in_clause_length
The deprecated in_clause_length method has been removed. Stop calling it. github.com
And 21 more in this version. Sign up to see every change
activerecord 7.0.0.rc1 breaking changes
- Removed
ActionDispatch.Response.return_only_media_type_on_content_type
The deprecated setting is removed. github.com - Removed
ActionDispatch.SystemTestCase.host!
The deprecated method is removed. github.com - Removed
ActionMailer.DeliveryJob
Use ActionMailer::MailDeliveryJob instead. github.com - Removed
ActiveModel.AttributeSet
Old serialized AttributeSet data can no longer be loaded. github.com - Removed
ActiveModel.Errors.keys
The deprecated method is removed. github.com - Removed
ActiveModel.Errors.messages
Assigning, deleting, clearing or concatenating errors through messages is no longer supported. github.com - Removed
ActiveModel.Errors.slice!
The deprecated method is removed. github.com - Removed
ActiveModel.Errors.to_h
The deprecated method is removed. github.com - Removed
ActiveModel.Errors.to_xml
The deprecated method is removed. github.com - Removed
ActiveModel.Errors.values
The deprecated method is removed. github.com
And 46 more in this version. Sign up to see every change
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
activerecord 7.0.0.alpha1 breaking changes
- Removed
connected_to
The deprecated database keyword argument of connected_to has been removed. github.com - Behavior changed
Numbers and booleans passed as bind parameters are now sent as strings, which can change query results. github.com
And 11 more in this version.
activerecord 6.0.0 breaking changes
- Behavior changed
The DATABASE_URL variable applies only to the primary connection. Use the new per-database environment variables for other databases. github.com
activerecord 6.0.0.rc1 breaking changes
- Behavior changed
Commit and rollback callbacks no longer run when a record was not saved. Code relying on them for unsaved records must change. github.com - Behavior changed
Association loading ignores surrounding scopes whether preloaded or not, except with unscoped. Code relying on scoped association results must change. github.com
And 2 more in this version.
activerecord 6.0.0.beta2 breaking changes
- Behavior changed
where
Conditions comparing a numeric column with a non-numeric string no longer match as 0. Check queries that relied on that match. github.com - Default changed
t.timestamps
Timestamp columns created with t.timestamps get precision by default. Review migrations that depend on the previous column definition. github.com
activerecord 6.0.0.beta1 breaking changes
- Removed
ActionDispatch.TestResponse.error?
Use successful?, not_found? and server_error? instead. github.com - Removed
ActionDispatch.TestResponse.missing?
Use successful?, not_found? and server_error? instead. github.com
And 37 more in this version.
Related packages
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.