Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


Median for ActiveRecord

Subscribe to updates I use active_median

Statistics on active_median

Number of watchers on Github 212
Number of open issues 0
Average time to close an issue about 12 hours
Main language Ruby
Average time to merge a PR about 13 hours
Open pull requests 0+
Closed pull requests 0+
Last commit about 3 years ago
Repo Created almost 7 years ago
Repo Last Updated over 2 years ago
Size 22 KB
Organization / Authorankane
Page Updated
Do you use active_median? Leave a review!
View active_median activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating active_median for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


Median for ActiveRecord - PostgreSQL only at the moment

Build Status


Works with grouping, too.

Order.group("date_trunc('week', created_at)").median(:total)


Add this line to your applications Gemfile:

gem 'active_median'

And create a migration to add the median function to the database.

rails g migration create_median_function


def up

def down


Everyone is encouraged to help improve this project. Here are a few ways you can help:

active_median list of languages used
Other projects in Ruby