Sha256: 1965b595822bbada66309d0607d014b894e6fffc1a7db335e369eb95ab7e28aa
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
require "active_support" require "active_median/model" require "active_median/enumerable" require "active_median/version" module ActiveMedian def self.drop_function ActiveRecord::Base.connection.execute <<-SQL DROP AGGREGATE IF EXISTS median(anyelement); DROP FUNCTION IF EXISTS median(anyarray); SQL true end end ActiveSupport.on_load(:active_record) do extend(ActiveMedian::Model) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_median-0.2.2 | lib/active_median.rb |
active_median-0.2.1 | lib/active_median.rb |