Median for ActiveRecord - PostgreSQL only at the moment
Works with grouping, too.
Add this line to your application’s Gemfile:
And create a migration to add the
median function to the database.
rails g migration create_median_function
def up ActiveMedian.create_function end def down ActiveMedian.drop_function end
Everyone is encouraged to help improve this project. Here are a few ways you can help: