Skip to content

Rails 7.1 Composite key support #142

@freibuis

Description

@freibuis

As the title says...
Rails now supports Composite keys,

would be nice to be able to supply an array of items as the key otherwise use :id using the terser-syntax

Model.seed([:field_one,:field_two], *data)

if this currently happens you will get the follow error

 Your seed constraints contained unknown columns: `[:field_one, :field_two]`. Valid columns are: `field_one`, `field_two`

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