class Foo < ActiveRecord::Base
include ActiveRecord::Calculations
includeの行を足して
avg = Foo.average(:hoge, :conditions => {:updated_at => time_stamp...Time.now})
的に扱う
Go to list of users who liked
More than 5 years have passed since last update.
class Foo < ActiveRecord::Base
include ActiveRecord::Calculations
includeの行を足して
avg = Foo.average(:hoge, :conditions => {:updated_at => time_stamp...Time.now})
的に扱う
Register as a new user and use Qiita more conveniently
Go to list of users who liked