fixes #2812: StatementInvalid exception on all Profile Pages

This commit is contained in:
Albert Yi
2016-12-29 14:39:24 -08:00
parent 527d118055
commit 74d02bde44
2 changed files with 2 additions and 2 deletions

View File

@@ -130,6 +130,6 @@ class PoolVersion < ActiveRecord::Base
end
def previous
PoolVersion.where(["pool_id = ? and updated_at < ?", pool_id, updated_at]).order("updated_at desc").first
PoolArchive.where(["pool_id = ? and updated_at < ?", pool_id, updated_at]).order("updated_at desc").first
end
end