How to Use ActiveRecord Without Rails

Very often I find myself writing small Ruby scripts to scrape data, process CSV files, or build a tiny Sinatra API. In these situations, generating a massive Rails application with ActionMailer, ActionCable, and Webpack is just overkill.

DevBlog by Zil Norvilis

New post in our blog!

Ever struggled to build complex queries with ActiveRecord? Discover the power of derived tables! Dive into this technique to level up your Rails SQL game!

https://blog.codeminer42.com/mastering-derived-tables-in-rails/

#Rails #ActiveRecord #Ruby #WebDev

It happens you need some field in the database to not contain an empty string, but to be NULL. For example, a unique index has been added to this field, meaning there can only be one record with an empty string. However, if the field has a NULL value, it is unique and there can be multiple such records.

#Ruby #Rails #ActiveRecord #Normalization #NULL #Empty #UNIQUE

At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:

• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter support

This is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.

Full technical breakdown 👇

https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/

#Rails #PostgreSQL #Ruby #ActiveRecord #OpenSource

Rails Meets PostgreSQL 18

February 11, 2026 Compatibility, Protocol Changes, and Virtual Generated Columns in Rails 8.1 At Kaigi on Rails 2025, Rails Committer Yasuo Honda delivered a deep technical walkthrough titled: Rail…

Linking Ruby knowledge from the most remote places in the world.
e.g. Yesterday I Learned about #ActiveRecord's overloading of the #Ruby "shovel" ("<<") operator, and a couple of weeks ago I started a foray into #Rails YAML serialisation, which seems to have changed quite a bit between versions, leading to inconsistently-formatted data in the database, and the exciting prospect of writing a data migration that runs raw SQL queries 😵

ActiveRecord: опасная магия

В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство» нередко начинает оборачиваться скрытыми проблемами.

https://habr.com/ru/articles/970042/

#ruby #rubyonrails #sql #activerecord #ошибки_и_грабли #n+1 #orm

ActiveRecord: опасная магия

В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство»...

Хабр

🚀 Mastodon v4.2.27 veröffentlicht.

• 🔧 Update von `rack` und `uri` Abhängigkeiten.
• 🔧 Behebung eines Problems mit nicht geschlossenen Streaming-Server-Verbindungen bei Sperrung von Nutzern.
• ⚠️ Bekanntes Sicherheitsproblem in ActiveRecord (Update auf v4.3+ empfohlen).

https://github.com/mastodon/mastodon/releases/tag/v4.2.27

#Mastodon #Ruby #Rails #ActiveRecord #Sicherheit

Release v4.2.27 · mastodon/mastodon

WarningThere is a known security issue in the version of ActiveRecord we use. While it is unlikely to affect you, it is worth being aware of, and we recommend updating to Mastodon v4.3 or newer if ...

GitHub

🚀 Mastodon v4.2.26 veröffentlicht

• 🔧 Fix: Verarbeitung von Out-of-Order Updates behoben.
• 🔧 Fix: Korrekte Reihenfolge von Create- und Update-Aktionen.
• ⚠️ Sicherheitsrisiko in ActiveRecord beachten, Update auf v4.3+ empfohlen.

https://s.hexix.de/s/atQWck
#Mastodon #Ruby #Rails #ActiveRecord #OpenSource #FederatedSocialNetwork

Release v4.2.26 · mastodon/mastodon

WarningThere is a known security issue in the version of ActiveRecord we use. While it is unlikely to affect you, it is worth being aware of, and we recommend updating to Mastodon v4.3 or newer if ...

GitHub

🚀 Mastodon v4.2.25 veröffentlicht.

• 🔧 Fix für Remote-Status-Bearbeitung mit neuen Medien und ohne Text.
• ⚠️ Bekanntes Sicherheitsproblem in ActiveRecord (empfohlene Aktualisierung auf v4.3 oder neuer).
• 🔧 Minimale Ruby-Version auf 3.1 aktualisiert.

https://s.hexix.de/s/jc0vS4
#Mastodon #Ruby #ActiveRecord #Sicherheit

Release v4.2.25 · mastodon/mastodon

WarningThere is a known security issue in the version of ActiveRecord we use. While it is unlikely to affect you, it is worth being aware of, and we recommend updating to Mastodon v4.3 or newer if ...

GitHub
Einmal ins Rabbit Hole von RubyonRails und ActiveRecord abtauchen und zurück?
Viel Spaß!
... und keine Klagen, wenn ihr länger drin geblieben seid als geplant 😆
https://www.youtube.com/watch?v=B4gEyuEQaBM
#rubyonrails #activerecord #deepdive
Jess Sullivan - ActiveRecord Unveiled: Mastering Rails’ ORM

YouTube