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

  • Symmetric Encryption in JavaScript for PII
  • Mastering Git workflow – Part 2/2
  • Using Mapbox to plan a city: a use case
  • Test mocking in practice with Sinon
  • Codeminer42 2022 – An Opensource Review

Tags

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

Meta

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