$ the-wire · showcase
kamipo retires three legacy Active Record holdovers
By RepoJournal · Filed · About Rails · Composed from the cited sources · methodology
A single day of cleanup deprecates two public constants and methods whose guards no longer guard anything and stops the MySQL socket probe in the database generator.
Deprecate `ActiveRecord::Callbacks::CALLBACKS` rails/rails
`ActiveRecord::Callbacks::CALLBACKS` is deprecated with no replacement and slated for removal in Rails 9.0. It never picked up `before_commit`, `after_save_commit`, `after_create_commit`, `after_update_commit`, or `after_destroy_commit`, so anything iterating the constant skips those callbacks silently. The commit notes it is referenced only in tests.
Deprecate `supports_datetime_with_precision?` rails/rails
`supports_datetime_with_precision?` is deprecated because it now always returns true. It existed to skip the `:precision` option on `datetime` and `time` columns before MySQL 5.6, and since MySQL 5.5 support was dropped, every adapter Active Record ships with, sqlserver and oracle-enhanced included, handles precision.
Merge pull request #58793 from kamipo/remove-mysql-socket-detection rails/rails
The database generator no longer probes for a local MySQL socket when writing `config/database.yml`.
Merge pull request #58794 from kamipo/deprecate_callbacks_constant rails/rails
The callback-constant deprecation landed as a merge.