Skip to content
The Miners

The Miners

Codeminer42’s Engineering Blog

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, 2021October 17, 2022

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, 2018January 12, 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, 2016November 12, 2019

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

  • Component-Driven UI Patterns Part ll
  • LocalStorage and Cookies under the hoodies
  • The reasons behind the “why”
  • Codeminer42 Tour 2023/1: RailsConf & Reactathon
  • JavaScript Under the Hood #2: Sub-classes

Tags

Activerecord API C Clean Architecture Components Crystal Lang CSS Database Dependency Injection Design Patterns DevOps DI Docker Docker Compose Elixir ES6 front-end Front End Development Functional Programming Git git-stash git-worktree Github JavaScript Node.js Nodejs Performance Programming Rails React Redux Refactoring Ruby Ruby on Rails securing Software Architecture Software Development State Management Testing Tutorial Typescript Vue Vuejs Vuex Web Development

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2023 Codeminer42. Powered by WordPress and Bam.