Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Automatically generate the "Pivot Model" on "Belongs to Many Relationships", if not informed #2

Open
@TiagoSilvaPereira

Description

@TiagoSilvaPereira

When informing a belongsToMany relationship on the Project file, and if a pivot table is not specified, create it using:

  • The table name will be the name of the two related models alphabetically sorted.
  • The table will have two Foreign Keys pointing to the two models PK (considering pk is id at this moment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions