rails breaking changes
Updated December 4, 2026
On this page
Latest version 8.1.4.1, released November 4, 2026. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 7.2.3.2 to 8.1.4.1: 178 breaking changes in 22 versions.
- From 7.0.0 to 8.1.4.1: 277 breaking changes in 38 versions.
rails 8.1.4.1 breaking changes
- Behavior changed
Signed URLs require a header matching byte_size. Bucket CORS configs must list x-goog-content-length-range or browser uploads fail. github.com - Behavior changed
Emails whose timestamp is more than 2 minutes ahead of local time are now rejected. github.com - Behavior changed
Direct-upload URLs with cache_control now use V2 signing, are no longer limited to 7 days, and the client sends Cache-Control unsigned. github.com - Behavior changed
ActionController.Parameters.each_key
The return value is now the Parameters object instead of the internal HashWithIndifferentAccess. Code using the returned value changes. github.com - Behavior changed
ActionDispatch.RemoteIp
With ip_spoofing_check enabled, requests with conflicting client addresses raise IpSpoofAttackError. github.com - Behavior changed
ActiveStorage.Blob.open
The tempfile keeps the extension only when it matches the recorded media type. Tools relying on the uploaded extension may change behavior. github.com - Behavior changed
ActiveStorage.ImageMagick.POLICY_DIRECTORY
Shipped policy denies several coders and the gs delegate. Apps rendering PDF or PostScript must re-allow them, and mini_magick 5.1 or later is required. github.com - Behavior changed
ActiveSupport.MessagePack
Unsafe SafeBuffers are now stored with an unsafe marker and load as String. Earlier Rails versions cannot read those values. github.com - Behavior changed
config.action_dispatch.cookies_same_site_protection
Session cookies from CacheStore, MemCacheStore and custom stores now get the configured SameSite value instead of none. github.com - Behavior changed
config.action_dispatch.ignore_accept_header
Rendered responses now set or extend the Vary header based on format negotiation headers. Shared caches may behave differently. github.com - Behavior changed
config.active_storage.ffmpeg_allowed_formats
Other formats now fail to preview with PreviewError and store no media metadata. Add their demuxers to the list to keep them. github.com - Behavior changed
highlight
Quotes in matched phrases are now rendered as " and ' in the highlighter output. github.com - Behavior changed
request.session_options
Applications that skip the session on every request no longer upgrade their signed or encrypted cookies. github.com - Behavior changed
strip_tags
Double and single quotes in the output are now written as " and '. Code using that output outside HTML must decode it. github.com
rails 8.1.4 breaking changes
- Renamed
Asia.Rangoon
ActiveSupport::TimeZone now uses the current IANA identifier Asia/Yangon. Code that refers to Asia/Rangoon should switch to Asia/Yangon. github.com - Renamed
Europe.Kiev
ActiveSupport::TimeZone now uses the current IANA identifier Europe/Kyiv. Code that refers to Europe/Kiev should switch to Europe/Kyiv. github.com - Behavior changed
The store accessor _change and saved_change_to_ methods now return nil for keys that did not change instead of a pair of equal values. github.com - Behavior changed
Time, DateTime and TimeWithZone hash keys now serialize in a different format than before. Code that depends on the old key strings must be updated. github.com - Behavior changed
The alphabetical column sorting added in 8.1 is reverted, so generated schema.rb files change order. github.com - Behavior changed
ActionDispatch.HostAuthorization
A Host header with an additional port is no longer accepted when the allowed host has an explicit port. Clients sending such headers will be blocked. github.com - Behavior changed
ActiveModel.Type.Integer
Integer casting now considers only the first few bytes of a string, so long strings may cast to different values. github.com - Behavior changed
async_ids
Calling async_ids on a contradictory relation now returns an ActiveRecord::Promise instead of a plain ActiveRecord::Result. Code must await or call value on it. github.com - Behavior changed
remove_column
Migrations calling remove_column with options but no type now raise IrreversibleMigration when rolled back. Such migrations must pass a column type. github.com - Behavior changed
SchemaCache.encode_with
Serialized schema caches keep the pre-8.1 column and index order. Code that depends on the 8.1 sorted order must change. github.com
And 2 more in this version. Sign up to see every change
rails 8.1.3.1 breaking changes
- Behavior changed
Active Storage now disables libvips untrusted loaders and savers while booting, so variant transformation of BMP, ICO and PSD attachments raises Vips::Error. Apps that need these types can remove them from... github.com - Configuration changed
The minimum libvips is now 8.13 and the minimum ruby-vips is now 2.2.1. When ruby-vips is installed and either minimum is not met, Active Storage raises RuntimeError while booting, so upgrade both. github.com
rails 8.1.3 breaking changes
- Removed
Support for PostgreSQL versions below 9.5 was dropped because Active Record now uses the array_position function. Upgrade PostgreSQL to 9.5 or later before upgrading Rails. github.com - Behavior changed
JSONGemCoderEncoder
Hash keys that are custom objects with an as_json returning a Hash are now converted with to_s on the original key, so the JSON output changes. Check any code that depends on the previous key format. github.com
rails 8.1.2.1 breaking changes
- Behavior changed
Active Storage range requests are now restricted to a single range, so requests with multiple ranges no longer work as before. github.com - Behavior changed
Tag helpers now omit attributes with blank names from the generated HTML, so markup that relied on them changes. github.com - Behavior changed
DirectUploadController
User supplied metadata is now filtered in direct uploads, so metadata passed through this controller may no longer be stored as before. github.com - Behavior changed
DiskService.delete_prefixed
Glob metacharacters in keys are now escaped, so code relying on delete_prefixed to expand them will break. github.com - Behavior changed
DiskService.path_for
Invalid keys now raise InvalidKeyError instead of ArgumentError or Encoding::CompatibilityError. Code rescuing the old exceptions must rescue InvalidKeyError. github.com - Behavior changed
NumberConverter
Inputs written in scientific notation are no longer accepted by NumberConverter. Code that passes such values must send plain numbers instead. github.com - Behavior changed
SafeBuffer.%
Formatting with SafeBuffer#% keeps the unsafe status, so output that was previously treated as safe may now be escaped. github.com - Default changed
Byte ranges for Active Storage blobs are now limited to 100mb by default. Larger range requests need the configurable maximum streaming chunk size raised. github.com
rails 8.1.2 breaking changes
- Behavior changed
ActiveJob.perform_all_later
Jobs with enqueue_after_transaction_commit set are no longer enqueued immediately by perform_all_later; they wait for the transaction to commit, matching perform_later. github.com - Behavior changed
ActiveRecord.SoleRecordExceeded.record
Since 8.0, record returned the model class; it now returns the relation, as it did before Rails 8.0. Code that relied on the class must be updated. github.com
Older versions
35 older versions, each with its first changes. Sign up to see every change
Show 35 older versions
rails 8.1.1 breaking changes
- Behavior changed
Controller methods whose names start with an underscore are once more treated as action methods, so they may become reachable through routes. github.com - Behavior changed
hidden_field
The remove_hidden_field_autocomplete config is now applied by the form builder hidden_field, so apps that set it will see different output. github.com
And 1 more in this version.
rails 8.1.0.rc1 breaking changes
- Removed
Benchmark.ms
Benchmark.ms is removed from Active Support; it is now defined in the benchmark gem. github.com - Removed
bin.rake stats
The deprecated bin/rake stats command is removed. github.com
And 12 more in this version.
rails 8.1.0.beta1 breaking changes
- Removed
:class_name
Polymorphic belongs_to associations no longer accept :class_name. Delete the option from those associations. github.com - Removed
:retries
The deprecated :retries option for the SQLite3 adapter is removed. Remove it from your configuration. github.com
And 17 more in this version.
rails 8.0.5.2 breaking changes
- Behavior changed
Action Mailbox now rejects Mailgun inbound emails whose timestamp is more than 2 minutes ahead of local time. github.com - Behavior changed
Signed URLs now require a content length range header matching byte_size. Bucket CORS configuration must list x-goog-content-length-range in responseHeader or browser direct uploads fail. github.com
And 10 more in this version.
rails 8.0.5.1 breaking changes
- Behavior changed
Active Storage now calls Vips.block_untrusted(true) while booting, disabling unfuzzed loaders and savers. Applications that need one of them must re-enable it in an initializer. github.com - Behavior changed
config.active_storage.variable_content_types
Transforming BMP, ICO and PSD attachments raises Vips::Error, and some formats no longer record width and height. Applications can remove affected content types from config.active_storage.variable_content_types in an initializer. github.com
And 1 more in this version.
rails 8.0.5 breaking changes
- Behavior changed
ActiveRecord.SoleRecordExceeded.record
Since Rails 8.0, SoleRecordExceeded#record returned the model class. This release restores the Rails 7.2 behavior of returning the relation, so code that relied on the class must be updated. github.com
rails 8.0.4.1 breaking changes
- Behavior changed
Requests with multiple byte ranges are no longer served as multiple ranges. Clients relying on multipart range responses will be affected. github.com - Behavior changed
Tag helpers now skip attributes with blank names instead of generating them in the HTML. Code expecting those attributes in output will see them missing. github.com
And 5 more in this version.
rails 8.0.4 breaking changes
- Behavior changed
Test requests submitted with as: :html are now sent with a x-www-form-urlencoded Content-Type, so tests that depended on the previous encoding may need updating. github.com - Behavior changed
Enumerable.sole
Code that relied on sole returning only the first element of a tuple will now receive the whole tuple and must be updated. github.com
rails 8.0.3 breaking changes
- Behavior changed
Serialized jobs now store the Active Job locale rather than the I18n locale, so code that reads the serialized locale may see different values. github.com
rails 8.0.2.1 breaking changes
- Removed
Transformations deemed dangerous are removed from Active Storage, so code relying on them will no longer produce the same result and must use safe alternatives. github.com - Behavior changed
The RecordNotFound error message now calls inspect on the ids, so code that matches or parses the message text may see different output. github.com
rails 8.0.2 breaking changes
- Behavior changed
Associated records that were not created or modified in the transaction are no longer validated on save, so invalid ones can now be saved. github.com - Behavior changed
Active Record now prevents saving invalid records, so code that saved invalid records must validate its data first. github.com
And 3 more in this version.
rails 8.0.0.1 breaking changes
- Behavior changed
Content security policies now validate their values and disallow spaces and semicolons. Code that passes those characters must use multiple arguments and different directive methods instead. github.com
rails 8.0.0 breaking changes
- Removed
MySQL 5.5 is no longer supported. Use MySQL 5.6.4 or later. github.com - Removed
ActiveRecord.ConnectionAdapters.ConnectionPool.connection
ConnectionPool#connection has been removed. github.com
And 30 more in this version.
rails 8.0.0.rc2 breaking changes
- Behavior changed
db:prepare
Seeds now load during db:prepare only when the new seeds database config is true, which defaults to false for non-primary databases. github.com - Default changed
Regexp.timeout
Regular expression matching now times out after 1 second by default, so slow patterns may raise errors. github.com
rails 8.0.0.rc1 breaking changes
- Removed
Removes finding database adapters not registered to Active Record in rails 8.0.0.rc1 github.com - Removed
ActiveRecord.ConnectionAdapters.ConnectionPool.connection
Removes the deprecated ConnectionPool#connection method in rails 8.0.0.rc1 github.com
And 22 more in this version.
rails 8.0.0.beta1 breaking changes
- Removed
ActiveRecord.ImmutableRelation
The deprecated constant ActiveRecord::ImmutableRelation is removed. github.com - Removed
MySQL 5.5 support
MySQL 5.5 is no longer supported; use MySQL 5.6.4 or later. github.com
And 8 more in this version.
rails 7.2.3.2 breaking changes
- Behavior changed
Active Storage now calls Vips.block_untrusted(true) at boot, so BMP, ICO and PSD variant transformations raise Vips::Error and analysis of SVG, JPEG XL, JPEG 2000 and Netpbm no longer records width and height. Applications that need those... github.com - Configuration changed
The minimum supported libvips is now 8.13 and ruby-vips is now 2.2.1. When ruby-vips is installed and either minimum is not met, Active Storage raises a RuntimeError while booting. Upgrade libvips and ruby-vips to meet these minimums. github.com
rails 7.2.3.1 breaking changes
- Behavior changed
Range requests are now limited to a single range. Clients sending multiple ranges will no longer get multipart responses. github.com - Behavior changed
Tag helpers now omit attributes with blank names to avoid generating invalid HTML. Code that relied on blank attribute names appearing in output must change. github.com
And 5 more in this version.
rails 7.2.3 breaking changes
- Behavior changed
Strict local errors now raise ActionView::StrictLocalsError, and other ArgumentErrors are reraised unchanged. Code that rescues ArgumentError keeps working. github.com - Behavior changed
Rails.config.secret_key_base
In test and development, secret_key_base now comes from ENV or credentials when set, instead of a generated tmp/local_secret.txt file. github.com
rails 7.2.2.2 breaking changes
- Removed
Certain transformations were removed from Active Storage for security reasons. Code that relies on them will no longer work and must be changed. github.com - Behavior changed
The RecordNotFound error now shows ids passed through inspect, so its message text changes. Code that matches on the old message text must be updated. github.com
rails 7.2.2.1 breaking changes
- Behavior changed
Content security policy values containing spaces or semicolons now fail validation. Pass multiple arguments and use the separate directive methods instead. github.com
rails 7.2.2 breaking changes
- Default changed
attributes_for_inspect
Records now show all attributes in inspect output by default. New applications set [:id] in config/environment/production.rb, so check any code or logs that depend on the inspect output. github.com
rails 7.2.1 breaking changes
- Behavior changed
enum
Enum options that use a leading underscore from the old syntax are now flagged as invalid when using the new enum syntax, so code relying on them must be updated. github.com
rails 7.2.0.beta2 breaking changes
- Behavior changed
ActionCable.Connection.TestCookieJar
Setting a cookie value in the Action Cable test cookie jar now reads back as the plain value, matching the regular cookie jar. Tests that expected the hash form must be updated. github.com
rails 7.2.0.beta1 breaking changes
- Removed
Referring to a singular association by its plural name no longer works. github.com - Removed
ActiveRecord.ActiveJobRequiredError
The deprecated ActiveJobRequiredError class is removed. github.com
And 64 more in this version.
rails 7.1.5.2 breaking changes
- Removed
Active Storage no longer supports certain transformations considered dangerous, as a security fix. Code relying on them must change. github.com - Behavior changed
The RecordNotFound error message now calls inspect on the ids, so its text changes. Code that matches on the old message must be updated. github.com
rails 7.1.5.1 breaking changes
- Behavior changed
Content security policy directives now validate their values and disallow spaces and semicolons. Code that passes such values must use multiple arguments and the separate directive methods instead. github.com
rails 7.1.4 breaking changes
- Behavior changed
ActiveSupport.Notifications.publish_event
Durations passed to subscribers of publish_event are now in the correct units. Code that scales or reads these durations, such as async Active Record query timings, will see values that differ by a factor of 1000. github.com - Behavior changed
BacktraceCleaner
Core internal methods are filtered out of backtraces by default, so code that inspects or depends on those backtrace lines will see different output. github.com
And 2 more in this version.
rails 7.1.3.4 breaking changes
- Behavior changed
Responses with non-HTML Content-Types now include the HTTP Permissions-Policy header. Check any code that depends on which headers non-HTML responses carry. github.com - Behavior changed
ActionText HTML content attachments are now sanitized in the Trix edit view, which can change the markup that reaches the editor. Review code that depends on the unsanitized attachment HTML. github.com
rails 7.1.3.1 breaking changes
- Behavior changed
translate
The translate method in controllers now handles HTML in its output differently to close a possible XSS hole. Code that relied on the previous raw output may need to change. github.com
rails 7.1.3 breaking changes
- Renamed
ActionView.TestCase.Behavior.Content
ActionView::TestCase::Behavior::Content was renamed to ActionView::TestCase::Behavior::RenderedViewContent, which now inherits from String. Code referencing the old name must use the new one. github.com - Behavior changed
ActiveStorage.Preview.processed
Calling processed on a preview now generates the full-sized preview and the requested variant right away, rather than when the variant URL is later requested. github.com
And 3 more in this version.
rails 7.1.2 breaking changes
- Behavior changed
foreign_key
Passing an array as the foreign_key option in associations now raises an error. Use a single column name for foreign_key. github.com
rails 7.0.0 breaking changes
- Removed
Quoting ActiveRecord::Base objects is no longer supported. github.com - Removed
Loading the Rails 5.x error format from Marshal and YAML is removed. github.com
And 59 more in this version.
rails 7.0.0.rc1 breaking changes
- Removed
:return_false_on_aborted_enqueue
This deprecated option has been removed. github.com - Removed
ActionDispatch.Response.return_only_media_type_on_content_type
This deprecated setting has been removed. github.com
And 51 more in this version.
rails 6.0.0.beta1 breaking changes
- Removed
ActionDispatch.TestResponse.success?
success?, missing? and error? are removed in favor of successful?, not_found? and server_error?. github.com - Removed
ActionView.Helpers.RecordTagHelper
ActionView::Helpers::RecordTagHelper is removed. github.com
And 33 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.