class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Range
def extract_bounds(value)
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