Ruby ORM/ODM Extensions

Open-source Ruby projects categorized as ORM/ODM Extensions

Top 23 Ruby ORM/ODM Extension Projects

  • PaperTrail

    Track changes to your rails models

    Project mention: History Tracking With Postgres | | 2022-10-25

    For a while we did this using the paper-trail gem. This was a very simple way to add a few lines of code to keep track of all of the changes made to an ActiveRecord model. But it came with one drawback. Every change to the data had to be done through ActiveRecord. There are often times when this makes an app vulnerable to a race condition. I’ll use a contrived example so as not to share any real code from our client’s app.

  • ActsAsTaggableOn

    A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.

    Project mention: How to get similar posts without duplicates in Rails 7? | | 2022-08-11

    Might want to check out acts_as_taggable_on and see how it handles such query:

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • ActiveRecord Import

    A library for bulk insertion of data into your database using ActiveRecord.

    Project mention: Video – How I 100x'd Bulk Import Speed in Rails with Some Pretty Gnarly SQL | | 2022-05-27

    I've used the activerecordimport gem with great success

  • Ancestry

    Organise ActiveRecord model into a tree structure

    Project mention: SQL help me please with multi nested childs | | 2022-06-01

    Making some guesses about what you’re trying to do, you’ll have to alter the table schema to do this efficiently. The ‘ancestry’ gem ( ) can do the migration and update your parent_id-based data to enable all its cool features.

  • Audited

    Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.

    Project mention: Temporality/time-travelling in DB with ActiveRecord? | | 2022-05-16

    that and also have a look at audited

  • PublicActivity

    Easy activity tracking for models - similar to Github's Public Activity

  • Paranoia

    acts_as_paranoid for Rails 5, 6 and 7

    Project mention: We lost 54k GitHub stars | | 2022-04-14 is enough to solve problems at very large scales.

    There is nothing about Rails or MVC preventing someone from doing this. This is a very common design principle for all kind of ERP and BPM systems: don't ever delete anything.

  • Zigi

    Workflow assistant built for devs & their teams. Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.

  • Apartment

    Database multi-tenancy for Rack (and Rails) applications

  • Awesome Nested Set

    An awesome replacement for acts_as_nested_set and better_nested_set.

    Project mention: Active record: how to recursively load children of children of children in one query? | | 2022-04-01

    Another option is to use something like AwesomeNestedSet which does basically the same thing as the previous suggestion but with a whole lot more flexibility (and likely more reliably performant).

  • ActsAsList

    An ActiveRecord plugin for managing lists.

    Project mention: Best way to represent a "sequence" column in a relational database. | | 2022-11-22

    You can take a look at one of the longest running ruby gems, that is still part of many people's default toolbox: acts_as_list. If you don't want to use the gem, you can take a look at how they implemented the resorting.

  • Closure Tree

    Easily and efficiently make your ActiveRecord models support hierarchies

  • Enumerize

    Enumerated attributes with I18n and ActiveRecord/Mongoid support

  • Discard

    🃏🗑 Soft deletes for ActiveRecord done right

    Project mention: Accessing point in time data when data changes over time | | 2022-08-12
  • marginalia

    Attach comments to ActiveRecord's SQL queries

  • Acts As Votable

    Votable ActiveRecord for Rails

  • Merit

    Reputation engine for Rails apps

  • Ruby JSON Schema Validator

    Ruby JSON Schema Validator (by voxpupuli)

  • Goldiloader

    Just the right amount of Rails eager loading

    Project mention: Proof of Concept: auto-preloading in ActiveRecord | | 2022-10-31

    There are many gems doing this. I use this one :

  • ActsAsParanoid

    ActiveRecord plugin allowing you to hide and restore records without actually deleting them.

  • Logidze

    Database changes log for Rails

    Project mention: Temporality/time-travelling in DB with ActiveRecord? | | 2022-05-16
  • Acts As Tennant

    Easy multi-tenancy for Rails in a shared database setup.

    Project mention: Consoliate or forward traffic the comes to different domains that belong to the same server | | 2022-09-12
  • dry-validation

    Validation library with type-safe schemas and rules

  • ActiveRecordExtended

    Adds additional postgres functionality to an ActiveRecord / Rails application

    Project mention: My project: railstart app | | 2022-06-12


  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-11-22.

Ruby ORM/ODM Extensions related posts


What are some of the best open-source ORM/ODM Extension projects in Ruby? This list will help you:

Project Stars
1 PaperTrail 6,413
2 ActsAsTaggableOn 4,893
3 ActiveRecord Import 3,781
4 Ancestry 3,498
5 Audited 3,090
6 PublicActivity 2,866
7 Paranoia 2,759
8 Apartment 2,562
9 Awesome Nested Set 2,320
10 ActsAsList 1,892
11 Closure Tree 1,731
12 Enumerize 1,681
13 Discard 1,681
14 marginalia 1,617
15 Acts As Votable 1,506
16 Merit 1,502
17 Ruby JSON Schema Validator 1,376
18 Goldiloader 1,357
19 ActsAsParanoid 1,356
20 Logidze 1,319
21 Acts As Tennant 1,259
22 dry-validation 1,243
23 ActiveRecordExtended 1,104
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.