ActiveRecord::Base.connection.after_transaction_commit { ... }