created_at not date
This commit is contained in:
parent
e20c54fed4
commit
a3e88efc2a
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ class Raid < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.soldiers_lost_to_date(date)
|
||||
where('date < ?', date).sum(:soldiers)
|
||||
where('created_at < ?', date).sum(:soldiers)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue