khiav223577/multi_range

Add Postgres Multirange behaviors for types

Danieth opened this issue · 1 comments

I'm working on a PR that will extend how this handles types to fully embrace how Postgres handles types (namely, the existing behavior differs for Date, Time & ActiveSupport::TimeWithZone objects).

This was prompted by a gem I'm writing that will add in support for PG Multiranges in ActiveRecord, utilizing your gem as the in Rails data structure. Ultimately, I'd like to add this support directly into Rails itself, but, that's a ways off.

I have some other thoughts for small changes I'd like to make that I'll put into another PR (I think the initializer could accept an option to assume the input ranges are already sorted).

What do you think @khiav223577 ?

Hi Danieth,

Thank you for informing me about the updates you plan to make. Your thoughts on incorporating an option in the initializer to assume input ranges are already sorted sound like a useful addition. Let me know if you need any help or feedback on this.

Please feel free to submit the PR. I'm looking forward to it!