With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into a gem ‘activerecord-session_store’. Setting config.session_store to :active_record_store will no longer work and will break if the activerecord-session_store gem isn’t available.
Earlier whenever we wanted to create a HABTM join table, we do this like: Now, in edge rails after this commit we can use a migration helper for the same:
Most developers use ActiveRecord callbacks after_create/after_update/after_destroy to generate background job, expire cache, etc., but they don’t realize these callbacks are still wrapped in database transaction, they probably got unexpected results like the app queued a job but the record is not created/updated(transaction rolled back). For such situations after_commit callback should be used. after_commit is introduced … Continue reading ActiveRecord after_commit hook