Skip to content
The Miners

The Miners

Codeminer42’s Engineering Blog

  • #6982 (no title)
  • #6982 (no title)

Tag: ActiveRecord

ActiveRecord Callback Chain: A Cool (and Weird) Edge Case

ActiveRecord Callback Chain: A Cool (and Weird) Edge Case

Luan Gonçalvesby Luan GonçalvesJuly 7, 2021July 4, 2023

Image by jcomp Well, it’s been a while. After a lot of time… I’m back! ( ̄▽ ̄)/ If you haven’t read my last post, give it …

Destroying an Association Marked as Read-Only in Rails

Destroying an Association Marked as Read-Only in Rails

Adriano Costaby Adriano CostaDecember 17, 2018October 17, 2023

Read-only is a boolean setting. When true, it prevents an Active Record instance to be updated or destroyed. Although very helpful, there are a few …

Using ActiveRecord to create atomic transactions

Mauricio Kleinby Mauricio KleinApril 23, 2016

Imagine the following situation: You were asked to create a new wallet feature to an application. This wallet must allow money transfer between users. Basically, …

Content type

Beginner Intermediate Advanced

Recent Posts

  • Codeminer42 Dev Weekly #60
  • Codeminer42 Dev Weekly #59
  • Async Code Demystified: Promises, Fetch, and useEffect
  • Codeminer42 Dev Weekly #58
  • What’s New in Node.JS 24

Tags

Android API Artificial Intelligence Authentication Best Practices C Computer Science CSS Database Dependency Injection Design Patterns DevOps Docker Elixir Frontend Functional Programming Git Golang HTML Information Security Infrastructure Java JavaScript NextJS Node.js open-source Performance PostgreSQL Programming Rails React Ruby Ruby on Rails Rust Software Architecture Software Development SQL Testing Tutorial TypeScript UI User Experience UX Vue.js Web Development
Creative Commons License 2025 Codeminer42 | Privacy Policy | Cookie Policy | Powered by WordPress and Bam.