rein
rein copied to clipboard
Using methods as column name in add_exclusion_constraint
Is there a way to construct the following constraint?
add_exclusion_constraint :invoices, "roomd_id WITH =, daterange(start_date, end_date) WITH &&", using: :gist, name: "invoices_date_overlap"
also see: https://github.com/rails/rails/pull/40224#issue-700465388
thank you, best