rails 6.1.2
Active Support
-
ActiveSupport::Cache::MemCacheStorenow accepts an explicitnilfor itsaddressesargument.config.cache_store = :mem_cache_store, nil # is now equivalent to config.cache_store = :mem_cache_store # and is also equivalent to config.cache_store = :mem_cache_store, ENV["MEMCACHE_SERVERS"] || "localhost:11211" # which is the fallback behavior of DalliThis helps those migrating from
:dalli_store, where an explicitnilwas permitted.Michael Overmeyer
Active Model
- No changes.
Active Record
-
Fix timestamp type for sqlite3.
Eileen M. Uchitelle
-
Make destroy async transactional.
An active record rollback could occur while enqueuing a job. In this case the job would enqueue even though the database deletion rolledback putting things in a funky state.
Now the jobs are only enqueued until after the db transaction has been committed.
Cory Gwin
-
Fix malformed packet error in MySQL statement for connection configuration.
robinroestenburg
-
Connection specification now passes the "url" key as a configuration for the adapter if the "url" protocol is "jdbc", "http", or "https". Previously only urls with the "jdbc" prefix were passed to the Active Record Adapter, others are assumed to be adapter specification urls.
Fixes #41137.
Jonathan Bracy
-
Fix granular connection swapping when there are multiple abstract classes.
Eileen M. Uchitelle
-
Fix
find_bywith custom primary key for belongs_to association.Ryuta Kamizono
-
Add support for
rails console --sandboxfor multiple database applications.alpaca-tc
-
Fix
whereon polymorphic association with empty array.Ryuta Kamizono
-
Fix preventing writes for
ApplicationRecord.Eileen M. Uchitelle
Action View
- No changes.
Action Pack
-
Fix error in
ActionController::LogSubscriberthat would happen when throwing inside a controller action.Janko Marohnić
-
Fix
fixture_file_uploaddeprecation whenfile_fixture_pathis a relative path.Eugene Kenny
Active Job
- No changes.
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
- No changes.
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
- No changes.