Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Top 23 ActiveRecord Open-Source Projects
-
Once again, Rails is ahead of the curve on this:
https://github.com/rails/rails/pull/54693
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Project mention: RDS Database Migration Series - Facing The Giant: How we migrated 11 TB database | dev.to | 2024-05-13
The primary culprits were two tables (and their huge indexes) that contributed approximately 90% to the total size of the database. One of them was an audit trail (paper trail versions, to be exact), and the second one was more domain-specific for short-term rentals. It's a pre-computed cache of prices for properties depending on various conditions so that they don't need to be computed each time on the fly and can be easily distributed to other services.
-
-
AASM
AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
-
-
Project mention: Kamal Proxy – A minimal HTTP proxy for zero-downtime deployments | news.ycombinator.com | 2024-09-21
Strong migrations helps writing migrations that are safe for ZDD deploys. We use it in our rails app, catches quite a few potential footguns. https://github.com/ankane/strong_migrations
-
1) First, let's install the Scenic gem. It's not required, but it gives us nice ways to create and manage views.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Audited
Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.
-
SqlKata Query Builder
SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
It seems to me a big part of the problem is that the "query builder" in TFA is little more than a string builder. In the .Net world I've used SqlKata [0] and been very pleased with it. It allows you to easily dynamically build and compose queries.
0: https://sqlkata.com/
-
-
-
-
IdentityCache
IdentityCache is a blob level caching solution to plug into Active Record. Don't #find, #fetch!
-
-
-
-
-
-
-
validates_timeliness
Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
-
-
pg_search
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Facets are possible in Postgres but it looks complex:
https://web.archive.org/web/20200815141031/https://roamanaly...
pg_search [0] not to be confused with the ruby gem of the same name [1]:
[0] - https://github.com/paradedb/paradedb/tree/dev/pg_search#over...
[1] - https://github.com/Casecommons/pg_search
-
This is where Kredis, a Redis client for Ruby, comes into play, offering a powerful and efficient caching solution.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
ActiveRecord discussion
ActiveRecord related posts
-
EvilSeed: A tool for creating partial dump of database based on app models
-
Explain why we need .ruby-version file but no ruby DSL method in Gemfile in Rails apps
-
Exploring ActiveRecord::Base::normalizes in Rails 7.1
-
"Kubernetes Explained: Benefits, Use Cases, and Why Airbnb,Spotify and CERN Rely on It 🤖"
-
Scaling Smarter: Unlocking the Power of Ruby on Rails with an Outsourced Team
-
Rails 8: Introducing the Built-in Authentication Generator
-
What is config.active_support.hash_digest_class = OpenSSL::Digest::SHA256?
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 21 Mar 2025
Index
What are some of the best open-source ActiveRecord projects? This list will help you:
# | Project | Stars |
---|---|---|
1 | Ruby on Rails | 56,605 |
2 | PaperTrail | 6,844 |
3 | ransack | 5,740 |
4 | AASM | 5,062 |
5 | Annotate | 4,455 |
6 | strong_migrations | 4,163 |
7 | Scenic | 3,494 |
8 | Audited | 3,422 |
9 | SqlKata Query Builder | 3,204 |
10 | Elasticsearch Rails | 3,080 |
11 | PublicActivity | 2,980 |
12 | counter_culture | 2,004 |
13 | IdentityCache | 1,924 |
14 | Closure Tree | 1,856 |
15 | active_record_doctor | 1,824 |
16 | marginalia | 1,754 |
17 | Enumerize | 1,754 |
18 | Logidze | 1,635 |
19 | Goldiloader | 1,629 |
20 | validates_timeliness | 1,605 |
21 | lockbox | 1,486 |
22 | pg_search | 1,416 |
23 | kredis | 1,380 |