Rails 7.2 Database Features You Already Have: An Active Record Reference
Rails 7.2 (August 2024) shipped four Active Record features you already have: composite foreign_key: associations for composite primary keys, per-transaction after_commit and after_rollback callbacks, ActiveRecord.after_all_transactions_commit, and the start_transaction.active_record event — plus rails new --devcontainer. All still work unchanged on Rails 8.1; only Active Job’s enqueue_after_transaction_commit changed, from adapter-decided to a per-job opt-in.