Skip to content

Using methods as column name in add_exclusion_constraint #58

@quorak

Description

@quorak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions