Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using methods as column name in add_exclusion_constraint #58

Open
quorak opened this issue Feb 28, 2022 · 0 comments
Open

Using methods as column name in add_exclusion_constraint #58

quorak opened this issue Feb 28, 2022 · 0 comments

Comments

@quorak
Copy link

quorak commented Feb 28, 2022

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: rails/rails#40224 (comment)

thank you, best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant