#activerecord
MySQL + DataMapper (2010)
-> MongoDB + Mongoid (2011)
-> MySQL + ActiveRecord (2014)
-> SQLite + ActiveRecord (2026)
This repo has Seen Some Shit… #rubylang
July 27, 2026 at 3:50 PM
This inline "blame" showing up automatically is kinda aggressive 😬
February 15, 2025 at 2:19 AM
Explaining ActiveRecord to juniors: it’s SQL, but prettier.

Explaining ActiveRecord to seniors: it’s SQL, but sneakier.
August 29, 2025 at 4:00 PM
I’ve been a developer who uses Ruby on Rails for many years… but today I shipped my first change to Ruby on Rails! A small bug fix to prevent an unnecessary query in ActiveRecord when using composite database keys.
March 31, 2026 at 3:32 PM
I never realized you could query ActiveRecord dates with open-ended ranges until today.

User.where(created_at: ..Time.current)

Or .where(created_at: Time.current..)

#til
December 19, 2024 at 2:34 AM
There's a new, important PR from Matthew Draper (Ruby on Rails core) that brings changes to how ActiveRecord connection pools work.
January 22, 2025 at 2:00 PM
#20DayGemChallenge

One gem per day for 20 days, in no particular order.

No explanations, no reviews, just README links. (14/20)

github.com/zdennis/acti...
December 18, 2024 at 11:55 PM
The longer I work with Rails the more I believe in the value of being very explicit about how things work.

The current target? ActiveRecord callbacks.

Get a large enough application and you have cascading callbacks across boundaries that become difficult to track.
March 9, 2025 at 5:53 AM
rowmappers/join-helpers/plain-object ORMs: good (Drizzle ORM is particularly good in typescript)

activerecord-pattern ORMs: burn with fire
December 12, 2025 at 2:42 AM
"Active Record" the pattern, "Active Record" the library, "ActiveRecord" the constant, "active_record" the gem.
December 31, 2024 at 3:42 PM
My favorite upcoming feature coming to the Rails ecosystem is ActiveRecord::Tenanted, which is an exciting new gem coming from @flavorjon.es soon.

Everyone gets a database!
September 4, 2025 at 9:20 AM
My Rails World talk about Rails multitenancy is up!

www.youtube.com/watch?v=Sc4F...

And you can try out the activerecord-tenanted gem here:

github.com/basecamp/act...
Mike Dalessio - Multi-Tenant Rails: Everybody Gets a Database!
YouTube video by Ruby on Rails
www.youtube.com
September 15, 2025 at 6:59 PM
Ruby 😛
May 10, 2026 at 12:27 AM
Topics would include things like: Callbacks, validations that query, indexes (or lack of), default scopes, polymorphic queries, ActiveRecord proliferation, large table migrations, deadlocks, locking in general, ownership, god models, versioning, temporal snapshots, and more.
May 29, 2026 at 4:48 AM
SQL was an early success story for me, because even when it got stuff wrong it gave me good reason to go back and bone up on “complicated” features I forgot as soon as I stumbled across activerecord”
May 26, 2025 at 10:50 PM
Truly an excellent name. I don’t think I’ve ever encountered a better project name.
April 27, 2025 at 7:47 PM
Here’s a Rails tip that’ll save you some time: in your ApplicationRecord, first define a `tiny_id` method that returns the `id` as a Base36. Then, define a `/` method that takes a Base36 and looks up the record. You can use it as pictured.
December 3, 2024 at 11:56 PM
April 20, 2025 at 8:15 AM
I wonder if the Rails guide about horizontal sharding guides.rubyonrails.org/active_recor... is wrong re: switching between shards via `ActiveRecord::Base.connected_to`. I didn't manage to make a simple example work following exactly the guide (see github.com/rails/solid_...) 🤔
December 6, 2024 at 9:39 AM
llms be like

# Wrap in an ActiveRecord transaction
ActiveRecord::Base.transaction do ...
July 4, 2025 at 8:51 AM
State machine libraries for ActiveRecord are an anti-pattern.
December 9, 2025 at 3:51 PM
ActiveRecord models can generate ephemeral tokens. This is how the new Rails 8 authentication does password reset. Looking over this module ActiveRecord::TokenFor this morning edgeapi.rubyonrails.org/classes/Acti...
ActiveRecord::TokenFor::ClassMethods - Ruby on Rails API
edgeapi.rubyonrails.org
November 4, 2024 at 3:22 PM