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!
bit.ly/4l0kUx8
#Rails #ActiveRecord #Ruby #WebDev
Latest posts tagged with #ActiveRecord on Bluesky
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!
bit.ly/4l0kUx8
#Rails #ActiveRecord #Ruby #WebDev
use normalizes instead callback
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.
#Ruby #Rails #ActiveRecord #Normalization #NULL #Empty #UNIQUE
Claude Code plugins for #Ruby / #Rails - LSP, #RSpec, #ActiveRecord, #MCP, Draper. PRs welcome.
github.com/hoblin/claude-ruby-marketplace
Rails 7.1 now lets you validate check constraints directly inside change_table blocks! No more splitting constraint creation and validation into separate steps in your migrations. #Rails #Rails71 #WebDev #Programming #ActiveRecord #Migrations #Database
blog.saeloun.com/2025/12/30/b...
Rails 8 finally brings native composite primary keys! We explore the complete evolution from Rails 3's single-id assumption to Rails 8's multi-column identity support #Rails #Ruby #RubyOnRails #CompositePrimaryKeys #ActiveRecord #WebDevelopment #SaaS #DatabaseDesign
blog.saeloun.com/2025/12/10/e...
blog.saeloun.com/2025/11/27/s...
#Rails #Rails7 #ActiveRecord #SQLWarnings #RailsDevelopment #DatabaseLogging #WebDevelopment #RubyOnRails #DevOps #Observability #BackendDevelopment #SoftwareEngineering
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: discord.gg/KfBeRSjK?eve...
#online #meetup #ruby #rails #activerecord
It's easy to accidentally ask for too many queries in Rails!
www.beflagrant.com/blog/fix...
#Rails #SQL #Ruby #ActiveRecord
⚠️ Your booleans might be skipping validations…
Did you know that `toggle!` calls `update_attribute` under the hood, which skips ActiveRecord validations?
#rubyonrails #activerecord
LLMs suggesting invalid Rails code traced back to poster's own forum question from 2 years ago!
bengarcia.dev/making-o1-o3-and-sonnet-...
#rails #chatgpt #activerecord #codedebugging #llmlimitations
Rosa on stage at Ruby Community Conference
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue […]
[Original post on ruby.social]
ActiveRecord Transactions: When & Why? 🚀
Ensure multiple DB operations succeed or fail together—no partial updates, no corrupt data!
✅ Use for:
Creating related records
Financial transactions
Bulk inserts/updates
Read more:
medium.com/@salujabhave...
#RubyOnRails #ActiveRecord #CodingTips
Lazy Rails: how do you define String based/backed Enums in ActiveRecord 7.x? Appears that by giving an explicit mapping of Hash{Symbol => String}, this causes an ArgumentError where it incorrectly tries to define the same `enum_value?` method twice.
github.com/ronin-rb/ron...
#activerecord
To allow eager loading scoped associations that require a parameter in my #Ruby on #Rails #ActiveRecord models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.
#activerecord #encryption in #rails 7
https://bit.ly/3lJaaow /via @KiproshHQ
5 tips for dealing with heavy #ActiveRecord dashboards in #Rails => http://bit.ly/1nzPQFK /via @evilmartians
disable #activerecord query caching => in application.rb insert this: config.middleware.delete ActiveRecord::QueryCache #rails #cache