Skip to content
The Miners

The Miners

Codeminer42’s Engineering Blog

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

Tag: ActiveRecord

Rails Multi-Databases and Tenancy: How You Can Do It Today Exploring how to implement multi-databases and tenancy in Rails 8.1 with SQLite and ActiveRecord::Tenanted

Rails Multi-Databases and Tenancy: How You Can Do It Today

Exploring how to implement multi-databases and tenancy in Rails 8.1 with SQLite and ActiveRecord::Tenanted

Miguel Marcondesby Miguel MarcondesSeptember 19, 2025September 19, 2025

Portuguese version here: https://tech-pills.github.io/2025-09-18-Rails-Multi-Databases-e-Tenancy-como-fazemos-isso-em-2025/ Hey everyone! Hope you’re doing well. So, you’re building an application and you’ve reached that moment when you think: “Damn, how …

Database Relationships Explained: From Theory to Rails Implementation From Core Concepts to Building Robust Rails Applications

Database Relationships Explained: From Theory to Rails Implementation

From Core Concepts to Building Robust Rails Applications

Igor Damascenoby Igor DamascenoJune 24, 2025July 24, 2025

Before we dive into the topic of relationships between tables in a relational database, it’s worth revisiting the key concepts we explored in our previous …

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

  • Tool or Agent? The impact of AI in your code and in your wallet
  • Mastering Zod Validation
  • Codeminer42 Dev Weekly #81
  • The Road To JVM: The JVM Specification
  • Four talks in four weeks

Tags

AI API Artificial Intelligence Authentication Backend Best Practices C Computer Science CSS Database Debugging 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 Security Software Architecture Software Development SQL Testing TypeScript UI UX Vue.js Web Development
Creative Commons License 2025 Codeminer42 | Privacy Policy | Cookie Policy | Powered by WordPress and Bam.