Open sirwolfgang opened 2 months ago
On the rails side its dying because it's failing to parse the ruby string style range from with the postgres style range splitter:
# https://github.com/rails/rails/blob/16882b886e245f363cd61f5ea553fe2bc525d070/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb#L69
def extract_bounds(value)
from, to = value[1..-2].split(",", 2)
{
from: (from == "" || from == "-infinity") ? infinity(negative: true) : unquote(from),
to: (to == "" || to == "infinity") ? infinity : unquote(to),
exclude_start: value.start_with?("("),
exclude_end: value.end_with?(")")
}
end
I'm not totally sure if this is something we should fix here in papertrails, or upstream in rails.
Thank you for your contribution!
Due to limited volunteers, issues that do not follow these instructions will be closed without comment.
Check the following boxes:
paper_trail
gemDue to limited volunteers, we cannot answer usage questions. Please ask such questions on StackOverflow.
Bug reports must use the following template: