Skip to content
Snippets Groups Projects

Bump tested pg versions in preparation of pg14

Merged Alex Ives requested to merge alexives/bump_tested_pg_versions into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • 4e6b5644
    duration_in_seconds is stored as BigDecimal in Postgres 14
    and its serialized as a string in Rails 6/7 JSON, which causes
    some specs to fail. As a temporary fix, we'll need to cast
    this field as double precision, until we come to a decision
    about what to do at application level.
    
    #398772
    
    Changelog: changed
@@ -32,7 +32,7 @@ def in_progress?
end
def duration_in_seconds(duration_expression = duration)
Arel::Nodes::Extract.new(duration_expression, :epoch)
Arel::Nodes::NamedFunction.new('CAST', [Arel::Nodes::Extract.new(duration_expression, :epoch).as('double precision')])
end
end
end
Loading