Sha256: ce635955a5c685a1bf0316ca72dde5c9f0fc82217f815bcdee4afff8fbaeeeec
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
require "active_support" require "active_median/model" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_median-0.2.0 | lib/active_median.rb |