Trending

#ActiveRecord

Latest posts tagged with #ActiveRecord on Bluesky

Latest Top
Trending

Posts tagged #ActiveRecord

Preview
Mastering Derived Tables in Rails - The Miners Ever struggled to build complex queries with ActiveRecord? Discover the power of derived tables!

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

0 0 0 0
use normalizes instead callback

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

1 0 1 0
Preview
GitHub - hoblin/claude-ruby-marketplace: Claude Code plugin marketplace for Ruby and Rails development Claude Code plugin marketplace for Ruby and Rails development - hoblin/claude-ruby-marketplace

Claude Code plugins for #Ruby / #Rails - LSP, #RSpec, #ActiveRecord, #MCP, Draper. PRs welcome.

github.com/hoblin/claude-ruby-marketplace

0 0 0 0
Post image Post image

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...

0 0 0 0
Post image Post image

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...

6 1 0 0
Preview
How to Clean Up Your Rails Logs: Ignoring Benign SQL Warnings Explore how Rails enables fine-grained control over SQL warnings, allowing teams to suppress harmless database warnings while maintaining visibility into critical issues.

blog.saeloun.com/2025/11/27/s...
#Rails #Rails7 #ActiveRecord #SQLWarnings #RailsDevelopment #DatabaseLogging #WebDevelopment #RubyOnRails #DevOps #Observability #BackendDevelopment #SoftwareEngineering

1 0 0 0

⏰ 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

0 0 0 0
Post image

It's easy to accidentally ask for too many queries in Rails!
www.beflagrant.com/blog/fix...

#Rails #SQL #Ruby #ActiveRecord

0 0 0 0
Post image

⚠️ Your booleans might be skipping validations…

Did you know that `toggle!` calls `update_attribute` under the hood, which skips ActiveRecord validations?

#rubyonrails #activerecord

2 0 0 0

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

1 0 0 0
Rosa on stage at Ruby Community Conference

Rosa on stage at Ruby Community Conference

Post image

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]

0 1 0 0
Preview
ActiveRecord Transactions: When and Why You Should Use Them ? At the core of every strong Ruby on Rails application is the ability to handle the data in a wholistic manner. The ActiveRecord transaction…

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

0 0 0 0
Preview
Upate ActiveRecord `enum` syntax (closes #143). · ronin-rb/ronin-db-activerecord@51c9b07 ActiveRecord backend for the Ronin Database. Contribute to ronin-rb/ronin-db-activerecord development by creating an account on GitHub.

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

1 0 1 0
Post image

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.

1 0 1 0
Preview
Active Record Encryption in Rails 7 Rails 7 provides attribute encryption right out of the box. It is necessary to comply with the GDPR norms & helps protects against data breaches.

#activerecord #encryption in #rails 7
https://bit.ly/3lJaaow /via @KiproshHQ

0 0 0 0
Preview
5 tips for dealing with heavy ActiveRecord dashboards in Rails—Martian Chronicles, Evil Martians’ team blog Of course, good performance is quite possible with ActiveRecord. However, for dashboards, the trick is that using ActiveRecord for fetching data doesn’t mean that you have to operate with ActiveRecord objects in views.

5 tips for dealing with heavy #ActiveRecord dashboards in #Rails => http://bit.ly/1nzPQFK /via @evilmartians

0 0 0 0

disable #activerecord query caching => in application.rb insert this: config.middleware.delete ActiveRecord::QueryCache #rails #cache

0 0 0 0