Ruby ActiveRecord

Open-source Ruby projects categorized as ActiveRecord

Top 23 Ruby ActiveRecord Projects

  • GitHub repo Ruby on Rails

    Ruby on Rails

    Project mention: Rails 7 enables scoping to apply to all queries | | 2021-04-13

    The pull request always has better information than some low quality blog:

  • GitHub repo PaperTrail

    Track changes to your rails models

    Project mention: Avo for Rails v1.0 💪 🎉 | | 2021-03-31

    They might be referring to the model change checking gem, not the log aggregation service.

  • GitHub repo ransack

    Object-based searching.

    Project mention: Airtable-like table filtering | | 2021-03-24

    I use ransack for this and find it very powerful and flexible without the need to rely on complex JS.

  • GitHub repo AASM

    AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer)

    Project mention: Code review of an Order object implemented as a state machine | | 2021-03-21

    AASM gem is great too! Easy to use and actively maintained.

  • GitHub repo Annotate

    Annotate Rails classes with schema and routes info

  • GitHub repo Elasticsearch Rails

    Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

  • GitHub repo PublicActivity

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

    Project mention: How to Create A Flexible, Performant Audit Trail In Ruby on Rails With A GraphQL API | | 2021-04-08

    You often want to track what user's are doing throughout your app. There are some gems that help you do this. For example, activerecord_activity_tracker or public_activity. However, gems like these sometimes utilize polymorphic relationships, which don't scale well, or they're very opinionated about the setup. When your requirements differ from the default setup, it can become cumbersome to implement.

  • GitHub repo Scenic

    Versioned database views for Rails

    Project mention: Logidze 1.0, postgres-specific alternative to eg paper_trail for recording ActiveRecord change history | | 2021-01-27

    TIL about fx gem for storing triggers in schema.rb. That makes me so happy because scenic gem for creating database views is one of my favorites. Postgres is very powerful and it's great to see tools for exposing that through Rails.

  • GitHub repo IdentityCache

    IdentityCache is a blob level caching solution to plug into Active Record. Don't #find, #fetch!

  • GitHub repo Enumerize

    Enumerated attributes with I18n and ActiveRecord/Mongoid support

  • GitHub repo Closure Tree

    Easily and efficiently make your ActiveRecord models support hierarchies

    Project mention: Find all objects of a chain of associations on the same table | | 2021-03-02

    I’ve used this for that

  • GitHub repo counter_culture

    Turbo-charged counter caches for your Rails app.

    Project mention: 26 most popular Ruby/Rails repositories on GitHub in July-August 2020 | | 2020-09-05

    counter_culture is a turbo-charged counter cache for your Rails app. 1,301 stars by now

  • GitHub repo validates_timeliness

    Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.

  • GitHub repo Spreadsheet Architect

    Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data.

  • GitHub repo Goldiloader

    Just the right amount of Rails eager loading

    Project mention: Prosopite is trending on GitHub! Thank you! | | 2021-02-20

    Prosopite looks cool, it's is similar to, though goldiloader will also rewrite the query to address the N+1 issue. You should be able to use both and verify goldiloader is working by checking that prosopite logs no N+1 queries.

  • GitHub repo Logidze

    Database changes log for Rails

  • GitHub repo lockbox

    Modern encryption for Ruby and Rails

    Project mention: Rails 7 introduces Active Record Encryption | | 2021-04-02

    I've been using the lockbox gem to encrypt specified attributes.

  • GitHub repo SQL Server

    SQL Server Adapter For Rails

  • GitHub repo active_record_doctor

    Identify database issues before they hit production.

    Project mention: 15 Resources I Learned Something From This Weekend | | 2020-09-27

    gregnavis / active_record_doctor

  • GitHub repo ActiveRecordExtended

    Adds additional postgres functionality to an ActiveRecord / Rails application

  • GitHub repo Polo

    Polo travels through your database and creates sample snapshots so you can work with real world data in development.

  • GitHub repo SearchCop

    Search engine like fulltext query support for ActiveRecord

  • GitHub repo Mobility

    Pluggable Ruby translation framework

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 2021-04-13.


What are some of the best open-source ActiveRecord projects in Ruby? This list will help you:

Project Stars
1 Ruby on Rails 48,125
2 PaperTrail 6,043
3 ransack 4,824
4 AASM 4,261
5 Annotate 3,695
6 Elasticsearch Rails 2,831
7 PublicActivity 2,794
8 Scenic 2,669
9 IdentityCache 1,666
10 Enumerize 1,599
11 Closure Tree 1,562
12 counter_culture 1,417
13 validates_timeliness 1,345
14 Spreadsheet Architect 1,161
15 Goldiloader 1,086
16 Logidze 1,069
17 lockbox 950
18 SQL Server 913
19 active_record_doctor 890
20 ActiveRecordExtended 838
21 Polo 699
22 SearchCop 661
23 Mobility 649